Reputation: 325
Is there a way to get user ID inside a SharePoint site with Microsoft Graph API ?
I get a guid id with /me endpoint but in my SP site the current user has id 033.
I know there is a way with SP rest api with currentspcontext. But i want to query with ms graph
Upvotes: 0
Views: 3858
Reputation: 236
I believe the Microsoft Graph currently only lets you query SharePoint sites, lists, and list items. Have you tried using the Microsoft Graph to query the User Information list?
Here is a sample of the service call that you need. You'll need to provide your user information list's guid and the Display name of the user. //graph.microsoft.com/v1.0/sites/root/lists/{user info list guid}/items?$select=Fields&$filter=Fields/Title eq 'Alex Wilber'&$expand=Fields
Upvotes: 1