10,756 questions with Microsoft Graph-related tags

Sort by: Updated
1 answer

Graph API `GET /teams/{id}/channels/{id}/filesFolder` results in "siteUrl cannot be null or empty"

Hi, We encountered the following error when accessing Graph API GET /teams/{id}/channels/{id}/filesFolder (document: https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http). { "error": { …

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,164 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T09:20:01.22+00:00
CAT 1 Reputation point
answered 2024-05-14T05:58:25.4133333+00:00
JiSheng-MSFT 80 Reputation points Microsoft Vendor
1 answer

Microsoft graph api error "You do not have permissions to open this file in the browser."

There was no problem when I first created the microsoft account. After some time passed, when I tried to request again, I got an error. I send a request to this endpoint and the following error is…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T15:01:27.7+00:00
developeruser 0 Reputation points
edited the question 2024-05-14T04:14:54.59+00:00
ManoharLakkoju 535 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
677 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,688 questions
asked 2024-05-13T05:55:00.7266667+00:00
Harishankar B 0 Reputation points
commented 2024-05-14T04:12:44.5433333+00:00
Harishankar B 0 Reputation points
1 answer

employeeexperience/communities returning 400 bad request

Steps to reproduce the behavior: Go to 'graph explorer' enter https://graph.microsoft.com/beta/employeeExperience/communities/eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiIyMDIxMzQ1Njg5NiJ9 click run report See error 400 bad response

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T23:46:55.4966667+00:00
Sellars, Martin 0 Reputation points
answered 2024-05-14T02:35:40.7533333+00:00
Yakun Huang-MSFT 315 Reputation points Microsoft Vendor
1 answer

Upload files to Teams' team channel using Graph from VBA in Excel with Library 'Request check out'

I have an Excel file running some VBA code. This file is to be accessed and edited by my co-workers, so I share it in a channel in a Teams' team. This file, upon some choices and inputs on a kind of form inside it, automatically generates some other…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,164 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T13:33:45.0833333+00:00
Inácio Rodrigues 0 Reputation points
edited an answer 2024-05-14T02:14:59.1866667+00:00
LiweiTian-MSFT 14,850 Reputation points Microsoft Vendor
0 answers

Getting an error when trying to create a new excel workbook.

I am trying to use the Graph API to create a new Excel workbook. I keep finding this way to do it everywhere on the internet. But I keep getting this error. POST https://graph.microsoft.com/v1.0/me/drive/root/children { "file": {}, …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T20:11:06.9133333+00:00
Jalen Parham 0 Reputation points
edited the question 2024-05-14T01:56:59.91+00:00
Emi Zhang-MSFT 22,086 Reputation points Microsoft Vendor
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T08:49:38.14+00:00
Shaun Yang (Medalsoft) 0 Reputation points
commented 2024-05-14T01:22:40.98+00:00
Shaun Yang (Medalsoft) 0 Reputation points
0 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,688 questions
asked 2024-05-13T03:21:56.8133333+00:00
Sato 0 Reputation points
edited the question 2024-05-13T23:20:51.66+00:00
Sato 0 Reputation points
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-08T19:54:04.64+00:00
Roman 0 Reputation points
commented 2024-05-13T22:50:10.4133333+00:00
Roman 0 Reputation points
1 answer

How to Remove all Staff from Bookings Appointment

When Updating a Bookings Appointment that already has staff assigned, if you remove all staff members from the staffMemberIds property, the appointment will not update the assigned staff members. This operation is allowed in the webapp, so the API…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T18:25:20.71+00:00
Justin 1 Reputation point
edited an answer 2024-05-13T22:42:17.1833333+00:00
Justin 1 Reputation point
0 answers

need to Need to call the Microsoft GraphApi from the .net application and get the user details based on the email address

Hi, I have a below requirement. I need to call the microsoft GraphApi from the .net application and get the user details based on the email address he/she types in the textbox. In Azure portal - i have enabled (Any Microsoft Entra ID tenant -…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-07T20:13:50.26+00:00
pk 5 Reputation points
commented 2024-05-13T19:49:48.2133333+00:00
Carolyne-3676 201 Reputation points
1 answer One of the answers was accepted by the question author.

Adding Scopes to a registered Service Principal

Hi there, We have a registered Service Principal (Enterprise Application) being used by several users granting us delegated permissions. We'd like to add an additional application (not delegated) permission to this service principal. For context, it…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-09T19:34:17.8433333+00:00
Ivan Zeljkovic 20 Reputation points
accepted 2024-05-13T19:14:17.63+00:00
Ivan Zeljkovic 20 Reputation points
0 answers

Calling delta link on sharepoint sites do not indicate which one is deleted

Is it normal? It occurs every time I query a delta link(sites/delta) just after deleting a sharepoint site. { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites", "@odata.deltaLink":…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T19:10:45.8133333+00:00
Luigi Gravel 0 Reputation points
0 answers

Calling delta link on sharepoint sites do not indicate which one is deleted

As you can see here, as the site were deleted, it appears in the delta call but nothing indicate if this site was modified, delete or added... we have no choice but calling each site to verify if it still exists { "@odata.context":…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-04-15T21:16:05.5966667+00:00
Luigi Gravel 0 Reputation points
edited the question 2024-05-13T18:58:15.97+00:00
Luigi Gravel 0 Reputation points
1 answer

I've encountered the 'unauthorized_client: The client does not exist or is not enabled for consumers' error while trying to use authentication via Microsoft Graph in my web service; any ideas on how to fix this?

Hello, I've added authentication via Microsoft Graph to my web service. Everything was working fine, but at some point, I started getting an "unauthorized_client: The client does not exist or is not enabled for consumers" error when trying to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-04-16T14:51:12.9333333+00:00
Netlas Team 0 Reputation points
commented 2024-05-13T18:02:54.45+00:00
Elena Lapshyna 0 Reputation points
1 answer

Teams Meeting

I am trying to get the user from an ongoing meeting using MS Graph api, Is there a way to do this?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T17:19:28.1133333+00:00
Allen 0 Reputation points
answered 2024-05-13T17:50:20.93+00:00
CharanyaB-MSFT 1,421 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Certain fields of mguser update arent working and I am unsure why.

$csvData = $csv | Select "User principal name","Title", "Department", "City", "StreetAddress", "Reporting managers" foreach($user in $csvData){ $userPrincipalName = $user."User principal…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-05-13T15:24:18.1066667+00:00
Nicolas Odorico 0 Reputation points
accepted 2024-05-13T17:34:38.32+00:00
Nicolas Odorico 0 Reputation points
1 answer

The reference target 'Application_xxxx-xxxx-xxxx' of type 'Application' is invalid for the 'owners' reference.

Hi folks, I am trying to add an application as an owner to a few Azure AD group but encountering below error message: "The reference target 'Application_xxxx-xxxx-xxxx' of type 'Application' is invalid for the 'owners' reference." I tried with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,107 questions
Microsoft Entra
asked 2024-05-13T16:26:45.3366667+00:00
Apurva Pathak 310 Reputation points
answered 2024-05-13T17:33:21.6066667+00:00
Hitesh Pachipulusu - MSFT 80 Reputation points Microsoft Vendor
1 answer

Delete attachment api call is giving 500 Internal Server Error

For the following API: DELETE https://graph.microsoft.com/v1.0/me/events/{eventId}/attachments/{attachmentId{}} I am getting the following response: { "error": { "code": "ErrorInternalServerError", …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
asked 2024-04-07T13:30:52.9466667+00:00
Shubham Yadav 5 Reputation points
edited a comment 2024-05-13T16:09:32.8066667+00:00
Olivier Drouin 0 Reputation points
0 answers

In Graph for Teams we used to be able to get a shift group for Time Off instances, This has somehow disappeared? Am I crazy or just dont know how to query graph correctly

In previous months in Shifts for Teams off time instances had a shift group ID, I cannot find this anymore. Am i doing something wrong.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,164 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,734 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,892 questions
asked 2024-04-09T13:30:03.65+00:00
Jonathan Spencer 0 Reputation points
edited a comment 2024-05-13T15:11:53.5166667+00:00
Jonathan Spencer 0 Reputation points