microsoft-graph-api

Either scp or roles claim need to be present in the token using when application permissions to read sharepoint sites

筅森魡賤 提交于 2020-06-29 03:35:29
问题 I created an app in Azure and set it up to use Access and ID tokens. I want to connect to different tenants and read SharePoint sites. Here are the permissions I've requested and received Admin Consent for: For now, I have set up an App Secret but I do plan to move to a certificate later. I have this code to get the access token and I do get an access token back: const params = new URLSearchParams(); params.append("grant_type", "client_credentials"); params.append("scope", "https://graph

Microsoft Graph Api Webhook subscription via Rest Api not working anymore

孤者浪人 提交于 2020-06-28 17:17:46
问题 I have a working application that receive email webhook events from MS-Graph Api. I noticed that I could not find the subscription back using the subscriptionId, I get a 404 error.I also cannot delete the subscription using the id. I investigated further and noticed that I cannot create new subscriptions anymore: The Application registered in Azure AD is a service-application (daemon) My application auto renews the subscriptions and every time it did that I get a 202 response, but somehow the

Office365 REST API - Calendar event attachments not visible for recipients

不羁的心 提交于 2020-06-28 10:35:44
问题 The add attachment endpoint seems buggy. Files attached to a calendar event are not visible to the calendar recipients. The attachments are visible to the event creator. My code had been working for months until recently, which leads me to believe this is a regression. Steps to reproduce There must be two users - the creator and the recipient. Create an event via https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events Attach a file to the event via https://graph.microsoft.com/v1.0

Error 7505 - Request Authorization Tenant Mismatch

陌路散爱 提交于 2020-06-28 08:09:35
问题 I am attempting to create a call using Example 3 from the documentation. I consistently get the same HTTP 403 response. My data is hosted via an Azure Portal Office Developer account. Sending a bearer token obtained through the process described as "Get access without a user." The bot is defined in Azure AD using an Office 365 developer account. The recipients are two of the users from that free AD deployment and the 16-user pack installed for testing. In the body of the HTTP 403 response, I

Create event with Microsoft Teams online meeting using Microsoft Graph Java SDK

吃可爱长大的小学妹 提交于 2020-06-28 08:08:55
问题 Searching in the Microsoft Graph documentation, I found this: https://docs.microsoft.com/es-es/graph/api/user-post-events?view=graph-rest-1.0&tabs=java It says that you can create an event with an online meeting using Java "Event" type. Code example But the problem is, when I tried to do it with the current last Microsoft Graph SDK version 1.7.1, I noticed that "event.isOnlineMeeting" and "event.onlineMeetingProvider" don't exists. Is it not implemented yet? Or I'm missing a new Microsoft

Microsoft graph API: empty BCC field

孤者浪人 提交于 2020-06-28 06:45:52
问题 Scenario: Jenny and Tom have gmail accounts. Jerry is o365 user Jenny sends email to Tom (in TO: field) and BCC: Jerry. When Jerry gets message from graph api and doesn't see himself in BCC entry, which is empty (in both versions of API - 1 and beta). If Jenny, Jerry and Tom would be in the group and Jenny have sent email to group, it would exactly the same for Jerry. There is no way to distinguish those two cases. I would expect that when user is in BCC he should see himself there. I know if

Why does Get User Access token throws invalid_grant error?

☆樱花仙子☆ 提交于 2020-06-28 06:14:26
问题 I am using Microsoft Graph Postman Collections to test common Microsoft Graph APIs from within Postman. However, I am stuck while trying to fetch user access token Below is the request POST /7c69806f-5754-488f-9dd8-7daa8afea4fd/oauth2/v2.0/token HTTP/1.1 Host: login.microsoftonline.com Content-Type: application/x-www-form-urlencoded SdkVersion: postman-graph/v1.0 cache-control: no-cache Postman-Token: ac512133-5afe-47a3-ae9b-3b6c0b510ebd grant_type=passwordclient_id=ebbe4872-5b7187

Why does Get User Access token throws invalid_grant error?

只谈情不闲聊 提交于 2020-06-28 06:14:11
问题 I am using Microsoft Graph Postman Collections to test common Microsoft Graph APIs from within Postman. However, I am stuck while trying to fetch user access token Below is the request POST /7c69806f-5754-488f-9dd8-7daa8afea4fd/oauth2/v2.0/token HTTP/1.1 Host: login.microsoftonline.com Content-Type: application/x-www-form-urlencoded SdkVersion: postman-graph/v1.0 cache-control: no-cache Postman-Token: ac512133-5afe-47a3-ae9b-3b6c0b510ebd grant_type=passwordclient_id=ebbe4872-5b7187

invalid_scope error AADSTS70011, Why I am getting this error

扶醉桌前 提交于 2020-06-28 05:59:26
问题 public string[] scopes1 = new string[] { "https://graph.microsoft.com/User.Read", "https://graph.microsoft.com/User.ReadWrite", "https://graph.microsoft.com/User.ReadBasic.All", "https://graph.microsoft.com/Mail.Send", "https://graph.microsoft.com/Calendars.ReadWrite", "https://graph.microsoft.com/Mail.ReadWrite", "https://graph.microsoft.com/Files.ReadWrite", }; public async Task<string> GetAccessToken2() { string url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?";/

Unable to search Microsoft Graph Api V1.0 users using Wildcard search pattern

笑着哭i 提交于 2020-06-28 05:43:09
问题 I am trying to search users based on wild card regex match using below code snippet: var users = await graphServiceClient.Users.Request().Select(e => new { e.DisplayName, e.GivenName, e.PostalCode }).Filter(RegexMatch(DisplayName("Rob.* Thomas") ).GetAsync(); So, above should match user "Robert Thomas"and RegexMatch is currently not available in filter keyword list ,i have just used as an example to achieve this task. Below should match Robin Thomas:- Filter(RegexMatch(DisplayName("Robi.?