Well your other option is to populate some "dummy" manager value for his account, which probably will not go well :)
Just add an exception to your query/code.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have the use case where I query the manager of a given user.
But when the given user is our CEO then I get an error, since he doesn't have a manager.
Because I want to avoid hardcoding his user to skip this query, what are the options to handle this scenario?
Are there any settings to make in Graph or in Azure AD?
How do you handle this scenario?
Best regards
Niklas
Well your other option is to populate some "dummy" manager value for his account, which probably will not go well :)
Just add an exception to your query/code.