Check out some of these common scenarios for working with the Microsoft Graph API. 

GET my profilehttps://graph.microsoft.com/v1.0/me
GET my fileshttps://graph.microsoft.com/v1.0/me/drive/root/children
GET my photohttps://graph.microsoft.com/v1.0/me/photo/$value
GET my mailhttps://graph.microsoft.com/v1.0/me/messages
GET my high importance emailhttps://graph.microsoft.com/v1.0/me/messages?$filter=importance%20eq%20'high'
GET my calendar eventshttps://graph.microsoft.com/v1.0/me/events
GET my managerhttps://graph.microsoft.com/v1.0/me/manager
GET last user to modify file foo.txthttps://graph.microsoft.com/v1.0/me/drive/root/children/foo.txt/lastModifiedByUser
GET Microsoft 365 groups I’m a member ofhttps://graph.microsoft.com/v1.0/me/memberOf/$/microsoft.graph.group?$filter=groupTypes/any(a:a%20eq%20'unified')
GET users in my organizationhttps://graph.microsoft.com/v1.0/users
GET groups in my organizationhttps://graph.microsoft.com/v1.0/groups
GET people related to mehttps://graph.microsoft.com/v1.0/me/people
GET items trending around mehttps://graph.microsoft.com/beta/me/insights/trending
GET my noteshttps://graph.microsoft.com/v1.0/me/onenote/notebooks

Thanks,

https://learn.microsoft.com/en-us/graph/overview

Advertisement