Can I send a OneDrive File Request using Microsoft's Graph API? - microsoft-graph-api

Microsoft OneDrive allows you to send a "file request" so others can send you very large files without needing a OneDrive account themselves.
I'm wanting to use an API (probably Microsoft Graph API)) to automatically create file requests on a user's behalf, and delete them later too.
Is it possible to create a OneDrive file request via an API? If so, where is that documented?
Thanks for your time!

Looks like that feature is not available yet. I see a feature request for the same in MS Graph user voice page. Please upvote/comment on the same so that the feature team will get better visibility.

Related

Recall an email using Microsoft graph api

I am using microsoft graph api to fetch emails from office365. There is need to have recall functionality but not able to locate the required api.
Can someone help me in here. I am not sure if such API even exists
There is no endpoint in the Graph for message recall it's all private API's in the clients that implemented it. You could add this as a feature request for the the graph https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform

Move email from Inbox to Microsoft group mailbox in Outlook web add-in

I am working on custom outlook web add-in where I need to move the email from my Inbox to the selected Microsoft Group mailbox programmatically.
I checked the move-message endpoint https://learn.microsoft.com/en-us/graph/api/message-move but that requires destination folder Id which I am not able to get it.
Is this possible using Graph API or any other way?
The Graph API doesn't support moving messages between mailboxes so what you described wouldn't work at least with the move operation even if you had the Id. There are also some limitations around shared mailboxes in add-ins https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/delegate-access?tabs=windows

Get the media file from SharePoint after getting a callRecord notification

I have subscribed to /communications/callRecords to get notifications whenever a call is available in Teams. At the moment the call is saved in SharePoint under the Recordings folder.
Is there a way in the Microsoft Graph API to link the callRecord to a file in SharePoint Drive to download it?
Thanks.
AFAIK the above feature is not available. Rather you may want to subscribe to callrecords and see if it provides the location or not.

Accessing and creating Teams Chats via Graph API

I'm going over the Microsoft Teams section of the Graph API and trying to find out how to do two things:
Create a new chat, giving it a topic that correlates to an entity in our app (essentially creating a chat around an entity), invite specific users into it, and send messages to the chat.
Access the currently logged-in user's private chats, filtered by their topic, and show their contents inside our app.
For #2, it looks like it should be possible using beta endpoint of the Graph API, but I get 403 Forbidden errors both in the Graph Explorer when trying to access https://graph.microsoft.com/beta/me/chats, and in my own app, after enabling the Chat.Read permissons for it.
For #1, it looks like the API doesn't officially support creating new chats at all.
Is there any approach we can use to create and manage chats? Is there an alternative, perhaps not MicrosoftGraph-based API?
as you mention, the ms graph doesn't yet support initiating group chat. You would use the MS Bot Framework for this: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bot-conversations/bots-conv-proactive
I see the docs on these Chat api do exist, but they are not present in the Graph Explorer. I tired testing them in the OfficeApiEditor tool with a v2.0 App Registration and Delegated permissions (Chat.Read) and i get this:
Failure - Status Code 500
"code": "InternalServerError",
"message": "Error while processing response.",
so maybe it will take some time before they are really available in beta.
In MS teams, there is a api called ChatMessage to post a message to a chat(only if the chat already exist or started). But, there is no api to create/start a new chat. I have raised a feature request. Do vote for this to suggest this idea to Microsoft.
https://microsoftteams.uservoice.com/forums/913786-microsoft-teams-free/suggestions/38776681-it-would-be-awesome-l-if-there-is-an-api-functiona

How to get the externally shared user's profile information for one drive using Microsoft Graph api

To get External user information if we share the file with specific people through link.
You can use following end point for fetching external users in your AD:
https://graph.microsoft.com/beta/users?$filter=userType eq 'Guest'
make sure that you have to select beta version of microsoft graph for additional user properties.
If you just want to get the external user list, you can use "/users?$filter=userType eq 'Guest'" resolve your issue.
If you want to get the access log of share file through link:
No matter you use OneDrive or OneDrive for business, we cannot use Graph API to get the user who have access the share file through link.
If you share the Team site's document, we can use JSOM to get the user profile first and store it to the access log. Then use the get user api to get the external user info.
If you share the document from OneDrive/OneDrive for business, we cannot assign our custom access log and no known Graph API for this too. You can submit an feature request in the UserVoice, meanwhile, you can try to see the audit logging first.

Resources