Forum Discussion
Gurdev Singh
Jul 01, 2019Iron Contributor
Microsoft Graph API: Get Users manager chain
Is there a way to get user's manager chain using Graph API, all the way to company CEO? or we'll have to make multiple calls for each manager.
pvanberlo
Jul 01, 2021MCT
This actually works, however, when getting the chain of managers, please add the "consistencyLevel: eventual" header to the request, otherwise it will only return the direct manager.
SamueleFurnari
Jul 01, 2021Copper Contributor
pvanberlo Thank you! Yesterday, just five minutes later the post on tech community, I opened a case to Microsoft... the customer service responded quikly and asked me to set the header...
I have seen the documentation so many times but I have not noticed the header 🙂
Thanks to the header from Graph explorer works well, now I need to get it to works with the .NET SDK.
Thanks again!