microsoft-graph-api

List Microsoft Sharepoint Sites with Microsoft Graph

我怕爱的太早我们不能终老 提交于 2021-01-27 12:23:35
问题 I'm working with Microsoft OneDrive and Microsoft Sharepoint using Microsoft Graph, and as I understood: Url to get file list from logged in user OneDrive is: /v1.0/me/drive/root/children Url to get file list from company Sharepoint Documents is: /v1.0/drive/root/children So my questing is: How to list Sharepoint Sites that user is following and upload files to this Sites 回答1: This isn't possible yet. You need to use the direct SharePoint API end point to access content from SharePoint Sites.

POST request to Graph API fails with Bad Request

馋奶兔 提交于 2021-01-27 10:54:09
问题 I am developing a script to access the Graph API to read all users in our AD. I am performing a request with AXIOS via: let response; try { response = await axios.post(`https://login.microsoftonline.com/${config.get('azure.tenant')}/oauth2/v2.0/token`, { client_id: config.get('azure.appId'), scope: config.get('azure.scope'), client_secret: config.get('azure.secret'), grant_type: config.get('azure.grantType') }); } catch (e) { res.send(e); } This fails, though, with: { "message": "Request

'Unauthorized' error when requesting '/joinedTeams' from Microsoft Graph

放肆的年华 提交于 2021-01-27 07:11:20
问题 I am setting up an app for modifying a Microsoft Teams account (teams/channels) through the Microsoft Graph API, but I can't get responses from all of the endpoints which I need to call. I have followed the guide for creating an app with application permissions and acquired access (and refresh) token(s) succesfully. Calling the https://graph.microsoft.com/v1.0/users/<user guid>/joinedTeams endpoint yields a response as follows: { "error": { "code": "Unauthorized", "message": "Unauthorized",

Fail to create online meeting with application identity with GraphServiceClient

南楼画角 提交于 2021-01-24 07:10:34
问题 I'm using an application identity from Azure AD with both read write permission granted, I've also run the Grant-CsApplicationAccessPolicy so that the application identity has right to create online meeting on behalf of a real user identity from Azure AD I know my setup works with get user from the graph api. However, I'm getting error after running the following: var confidentialClient = ConfidentialClientApplicationBuilder .Create(clientId) .WithAuthority($"https://login.microsoftonline.com

Graph API - Returning 404 in certain data centers when accessing on-prem mailboxes

荒凉一梦 提交于 2021-01-07 06:36:45
问题 I recently created a process that reads/writes contacts in users' mailboxes on-prem via Graph. This process works as expected most of the time but certain times it fails with a 404. I've narrowed it down to the datacenter Graph is using. I've verified nothing is causing this issue at the network perimeter and no API calls are actually reaching the Exchange servers when the 404 is returned. 404 - North Central US DEBUG: GET https://graph.microsoft.com/v1.0/users/zHM.Test%40fomain.com/contacts?

Graph API - Returning 404 in certain data centers when accessing on-prem mailboxes

南楼画角 提交于 2021-01-07 06:35:35
问题 I recently created a process that reads/writes contacts in users' mailboxes on-prem via Graph. This process works as expected most of the time but certain times it fails with a 404. I've narrowed it down to the datacenter Graph is using. I've verified nothing is causing this issue at the network perimeter and no API calls are actually reaching the Exchange servers when the 404 is returned. 404 - North Central US DEBUG: GET https://graph.microsoft.com/v1.0/users/zHM.Test%40fomain.com/contacts?

Bug identified in Azure B2C MFA phone number format (missing spaces)

和自甴很熟 提交于 2021-01-07 06:33:40
问题 This was suggested by Hari Krishna on another thread to open a new SO thread for this discussion. How do I programmatically clear or update a phone number for Azure AD B2C MFA? We are using B2C custom policies with a step to write back the user's MFA profile to the B2C profile. The B2C technical profile name is AAD-UserWritePhoneNumberUsingObjectId . <!-- Save MFA phone number: The precondition verifies whether the user provided a new number in the previous step. If so, then the phone number

Bug identified in Azure B2C MFA phone number format (missing spaces)

女生的网名这么多〃 提交于 2021-01-07 06:32:30
问题 This was suggested by Hari Krishna on another thread to open a new SO thread for this discussion. How do I programmatically clear or update a phone number for Azure AD B2C MFA? We are using B2C custom policies with a step to write back the user's MFA profile to the B2C profile. The B2C technical profile name is AAD-UserWritePhoneNumberUsingObjectId . <!-- Save MFA phone number: The precondition verifies whether the user provided a new number in the previous step. If so, then the phone number

Microsoft Graph API getSchedule filter by calendars

落花浮王杯 提交于 2021-01-07 02:49:19
问题 I'm using microsoft graph API and want to get user's busy slots for particular calendars, so there is an end point /getSchedule which takes body like : { "schedules": ["adelev@contoso.onmicrosoft.com", "meganb@contoso.onmicrosoft.com"], "startTime": { "dateTime": "2019-03-15T09:00:00", "timeZone": "Pacific Standard Time" }, "endTime": { "dateTime": "2019-03-15T18:00:00", "timeZone": "Pacific Standard Time" }, "availabilityViewInterval": "60" } In this endpoint I want to filter by calendars, I

Microsoft Graph API getSchedule filter by calendars

余生长醉 提交于 2021-01-07 02:47:12
问题 I'm using microsoft graph API and want to get user's busy slots for particular calendars, so there is an end point /getSchedule which takes body like : { "schedules": ["adelev@contoso.onmicrosoft.com", "meganb@contoso.onmicrosoft.com"], "startTime": { "dateTime": "2019-03-15T09:00:00", "timeZone": "Pacific Standard Time" }, "endTime": { "dateTime": "2019-03-15T18:00:00", "timeZone": "Pacific Standard Time" }, "availabilityViewInterval": "60" } In this endpoint I want to filter by calendars, I