microsoft-graph-api

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

不想你离开。 提交于 2021-02-20 18:54:11
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

喜夏-厌秋 提交于 2021-02-20 18:54:09
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

B2B users cannot sign in to Tenant using v2.0 endpoint & MSAL Auth flow

时光毁灭记忆、已成空白 提交于 2021-02-20 18:54:02
问题 I am trying to create a B2B Management portal. I've started off with this sample since it uses MSAL and Graph API. user@live.se is in the tenant. It's been invited as a "guest user", i.e a B2B user. However, signing in with user@live.se does not work even though it's been added to the tenant. Following error after sign-in: AADSTS50020: User account 'user@live.se' from external identity provider 'live.com' is not supported for api version '2.0'. Microsoft account pass-thru users and guests are

Microsoft Graph API UnkownError

女生的网名这么多〃 提交于 2021-02-20 05:08:18
问题 What am I doing wrong? I want to list the files in the root of my OneDrive. But I always get a 401 Unauthorized . I used Fiddler to track the requests and requesting the OAuth token seems to work fine. But when I try to request https://graph.microsoft.com/v1.0/me/drive/root/children I get Unauthorized as response with the code UnknownError private static GraphServiceClient GetAuthenticatedGraphClient() { List<string> scopes = new List<string> { "https://graph.microsoft.com/.default", }; var

How to get a temporary (or permanent) regular URL for a file in OneDrive using the Microsoft Graph API

烈酒焚心 提交于 2021-02-20 05:06:58
问题 Using createLink, for example with the POST parameters: {"type": "view", "scope": "anonymous"}, you get a response including a webUrl which will open the item (in read-only or read-write mode, depending on the POST parameters) in Office Online. Because of the 'anonymous' scope, anyone (no login required) can open the office online page. Unfortunately, I don't a link to Office Online, and it looks like this is the functionality provided by Create a sharing link for a DriveItem. I need a link

How to list the deleted contacts by Microsoft Graph API

十年热恋 提交于 2021-02-20 04:10:46
问题 I want to do a sync action in my client side, so need to know how to get all deleted contact list. By the api (GET /me/contacts), I could get all contact list But it wastes much time when the user has large contacts. This api (GET /me/contacts/{id}) tell us the contact is exist or not. it is inefficient to check every contacts are deleted or not for me. Which apis do I use? thanks for your help. 回答1: Why not use the delta query preview in the /beta endpoint? That should do what you want. 回答2:

How to list the deleted contacts by Microsoft Graph API

北战南征 提交于 2021-02-20 04:09:39
问题 I want to do a sync action in my client side, so need to know how to get all deleted contact list. By the api (GET /me/contacts), I could get all contact list But it wastes much time when the user has large contacts. This api (GET /me/contacts/{id}) tell us the contact is exist or not. it is inefficient to check every contacts are deleted or not for me. Which apis do I use? thanks for your help. 回答1: Why not use the delta query preview in the /beta endpoint? That should do what you want. 回答2:

Calendar Id randomly changed

烈酒焚心 提交于 2021-02-20 03:46:45
问题 Whats the reason that make a calendar change it's id when using microsoft graph ??? This happened today for one of our clients who's been using his main Calendar for over 2 years, and suddenly today, the id is changed and we are unable to add any event since we have the 'old' id Endpoint being called: /me/calendars/AAMkAGFmMzAxNmRkLTg4YTEtNDNhZS1iYjExLWE1OThlYThlNTRmOQBGAAAAAACxNL6zUoo_Qr9AY8vFoIfmBwBstbpyrelbSJu1keAu6bMkAAAAAAEGAABstbpyrelbSJu1keAu6bMkAAAAAFB8AAA=/events Error returned: {

Microsoft Graph API Java - get group using displayName

大兔子大兔子 提交于 2021-02-11 16:53:14
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter

Microsoft Graph API Java - get group using displayName

久未见 提交于 2021-02-11 16:52:31
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter