Custom roles are not returned when i query a users memberof endpoint in graph api
Hi, I have used graph api users memberOf endpoint to get the roles assigned for a user . The response from the endpoint returns all the groups and roles that is assigned for that user , but the custom defined role is not returned . Is there any other way…
How to access OneNote Notebook data with MS Graph SDK python
Im trying to build a python app/script that goes through a onenote notebook and create folders for each section and creates html files for each of the pages in the section that will be saved in the respective folder. I tried to play around with the…
How to Authenticate Scan to email mailbox
Our organization is trying to have all mailboxes set up with MFA so we can turn of legacy. The issue is that we have scan-to-email function set up through a UserMailbox, so if we convert this to a SharedMailbox, users will no longer be able to use it for…
/invite endpoint "notAllowed" but /createLink ok in Sharepoint via Graph API
Hi, I don't understand why I can create a sharing link via the POST /sites/{siteId}/drive/items/{itemId}/createLink endpoint but when I try to use the POST /sites/{siteId}/drive/items/{itemId}/invite endpoint I receive a 403 with this body: { …
Graph API - filter and select together - 404 error
When i use 'filter' and 'select' together in a GRAPH API url, it gives a 404 error This is my URL in web.config - https://graph.microsoft.com/v1.0/users?$select=givenName&$filter=startswith(displayName,'searchName') Following is the code i use to…
How to query emails by recipient's email address?
I am using the Graph REST API. Below is my URL. https://graph.microsoft.com/v1.0/me/mailFolders('SentItems')/messages?$filter=sentDateTime ge 2024-04-27T16:00:00Z and sentDateTime le 2024-05-04T15:59:59Z and toRecipients/any(a:a/emailAddress/address eq…
Failed to filter based on file property in MS Graph API
https://graph.microsoft.com/v1.0/me/drive/root:/{folderName}:/children?$top={top}&$filter={filter}, {filter}=file eq null, this Graph API works before, but now it return "error": { "code": "notSupported", …
Is there any API to get Microsoft compliance reports?
I want to get the Microsoft Message encryption report and Alerts from Microsoft Compliance programatically using API. Manually I do the process in the following way: Message Encryption Report: Link:…
Get All SharePoint Files and Folder in a Tree structure of a Document Library using GraphAPI?
Get All SharePoint Files and Folder in a Tree structure of a Document Library? I can get all the files within the Document Library, but not in a structured way or in a tree format, by using -…
Resource graph query to get "microsoft.insights/guestdiagnosticsettings" resources?
According to documentation, resource type "microsoft.insights/guestdiagnosticsettings" should be available using Azure Resource Graph. https://learn.microsoft.com/en-us/azure/governance/resource-graph/reference/supported-tables-resources …
Set Retention Label & permanent delete based on retention label
Unable to set the retention label (https://learn.microsoft.com/en-us/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0&tabs=http) PATCH /drives/{drive-id}/items/{item-id}/retentionLabel ---I also want to permanently delete based on retention…
rest api for exchange online
I know there is rest API support to control your outlook/mail. But I need to know if there is any API reference for Exchange Online settings. For example, in powershell we have cmdlets like Get-TransportRule, Get-MalwareFilterPolicy,…
Calling business number with Graph API CALL
Hello, I'm trying to use the graph api to call the Business number associate with the Azure account of a user. Did someone know if there is a possible of doing this because i read the ms doc and i found no info...
How to post messages on a channel
I have a multi-tenant Microsoft Teams tab app. I want it to post messages on a selected channel from my server. I successfully receive the token using this endpoint: https://login.microsoftonline.com/{TENANT_ID}/oauth2/v2.0/token Then, I use the token to…
How can I enable Chat communication between external users and Microsoft Teams users through the Teams desktop app ?
Hello Microsoft team, I've successfully integrated Microsoft Teams calling into my web application using Azure Communication Services and Microsoft Graph. However, I'm encountering difficulties enabling chat communication between external users…
Microsoft Grpah Apo intune Mobile device and software
i have requirements to pull mobile devices from MS intune using graph api, i am able to pull manageddevies but not able find api which gives me application or s.w installed on moible device i tried deviceappmanagment api but not able to add filter in…
When and how is a refresh token extended?
Microsoft document says "Anytime the SSO session token is used within its validity period, the validity period is extended another 24 hours or 90…
Copy and past embedded images from one Excel file to another with Microsoft Graph on Sharepoint
Hello, Is there a way to copy and past embedded images from one Excel file to another with Microsoft Graph on SharePoint? I was able to copy the data from one Excel file to another with the following script but the format is not preserved and the…
Get Doc Library associated with a Group
I'm trying to Get the document library associated with a group, GET /groups/{groupId}/drive as mentioned over here…
How can I load Onedrive's files using Langchain and which loader can be used?
I want to integrate Onedrive into my chat bot web application. I got access token to use Microsoft graph API and used "OnedriveLoader" from langchain community for document loading as file support to train the chatbot. I did according to the…