microsoft-graph

Microsoft Graph: List all users and their groups in one request

两盒软妹~` 提交于 2020-01-11 01:29:29
问题 I would like to list all users. For each user, I need to display the roles and groups specific to that user. I tried: https://graph.microsoft.com/v1.0/users?$expand=memberOf But it gives exactly the same result as: https://graph.microsoft.com/v1.0/users According to the doc for the user object (http://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/user), I should be able to list the roles and groups for the user by using the memberOf relationship. I can get the roles and groups I

How do I create an auth token with the new microsoft graph api?

三世轮回 提交于 2020-01-10 19:50:29
问题 I've been using this: https://github.com/Azure-Samples/active-directory-php-graphapi-web.git to access the graph api, which works. My azure AD registered application is able to query the API to get a list of users in the directory. But now I want to list folders for a user in the directory. This page http://graph.microsoft.io/docs says the url should be: https://graph.microsoft.com/v1.0/me/drive/root/children When I use that url in my REST call, I get "code": "InvalidAuthenticationToken",

Microsoft Graph API token validation failure

那年仲夏 提交于 2020-01-10 04:56:05
问题 I would use Microsoft Graph API in my Angular Web application. First I make connexion using msal library When I try log in with my profil I get this error I have configured my app as the mentionned in the official git sample MsalModule.forRoot({ clientID: "Tenant ID", authority: "https://login.microsoftonline.com/common/", redirectUri: "http://localhost:4200/", validateAuthority : true, popUp: true }), Authetification is working and I get the token. Then when I'm in home page I make a second

How to access shared calendars from Office REST API?

北战南征 提交于 2020-01-10 04:21:26
问题 This question has been asked several times and as per answers such as this it seems the API didn't support this then until recently as here which mentions that there are new scopes which allow accessing the shared calendars. But it still does not work. I have tested this on two platforms: Azure and Microsoft Graph Azure Ad App My application in Azure AD has all the required permissions: I make a call to Office API v.1.0 as: Authorise URL: https://login.microsoftonline.com/common/oauth2

Microsoft Graph API - 403 Forbidden for v1.0/me/events

泪湿孤枕 提交于 2020-01-07 06:44:31
问题 I'm building a page with numerous calls to Microsoft Graph to different end points: to get OneDrive files, emails, user properties, etc. The one call that does not work is to get the current user's calendar events. The end point I'm using is https://graph.microsoft.com/v1.0/me/events . The response is 403 Forbidden. According to the Microsoft documentation here the application needs Calendars.Read or Calendars.ReadWrite permissions. I checked both of these under delegated permissions and

Accessing the Microsoft Graph API through JavaScript

回眸只為那壹抹淺笑 提交于 2020-01-07 03:07:55
问题 I am looking for a JavaScript example to play with the Microsoft Graph API. Although I have found https://github.com/OfficeDev/O365-Angular-Microsoft-Graph-Connect; I don't get it to work. Do I need to be an AAD admin to get it properly registered? I am only a regular user of my organization's Office365 tenant. I have used the wizard at http://graph.microsoft.io/app-registration. I both registered the app via 1) the current Registration Tool and 2) the new Registration Portal. Both routes

Accessing the Microsoft Graph API through JavaScript

[亡魂溺海] 提交于 2020-01-07 03:07:27
问题 I am looking for a JavaScript example to play with the Microsoft Graph API. Although I have found https://github.com/OfficeDev/O365-Angular-Microsoft-Graph-Connect; I don't get it to work. Do I need to be an AAD admin to get it properly registered? I am only a regular user of my organization's Office365 tenant. I have used the wizard at http://graph.microsoft.io/app-registration. I both registered the app via 1) the current Registration Tool and 2) the new Registration Portal. Both routes

Get items permissions in OneDrive for Business using microsoft Graph API

冷暖自知 提交于 2020-01-07 01:49:07
问题 Context I'm trying to get the permissions granted on items in personal OneDrive for Business drives using the Graph RESTful API . Querying the OneDrive for Business: GET: graph.microsoft.com/v1.0/drives/<driveID>/items/<itemID>/permissions. and : GET :graph.microsoft.com/v1.0/drives/<driveID>/root/permissions/<itemID> I'm getting the following error : "code": "-2130575138, Microsoft.SharePoint.SPException", "message": "MountPoint security error: host web isn't a personal site" However, if I

Microsoft Graph does not work with ADFS?

主宰稳场 提交于 2020-01-06 21:02:08
问题 I get the following message when trying Graph Explorer. Does Microsoft Graph support ADFS authentication? Regard Dat. Sign In Sorry, but we’re having trouble signing you in. We received a bad request. Additional technical information: Correlation ID: 61daeae5-d95b-4d2f-a32c-880021f0b437 Timestamp: 2016-07-20 21:17:14Z AADSTS90093: Calling principal cannot consent due to lack of permissions. 回答1: Both the Microsoft Graph and the Graph Explorer leverage Azure Active Directory for authentication

Is there any way we can access the `shared with me` files in graph API Microsoft using application permission?

一曲冷凌霜 提交于 2020-01-06 08:43:13
问题 Is there any way we can access the shared with me files in graph API Microsoft using application permission as it is working fine with the delegated permission but I want it using application permission. @ https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_sharedwithme?view=odsp-graph-online. I tried this approach https://graph.microsoft.com/v1.0/users/{User-Principal-Name}/drive/sharedWithMe But getting a response with the values field empty. Response I am getting after