I am referring : https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http and this url : https://graph.microsoft.com/v1.0/me -- works fine.
and trying to get the required user details.
My question is, how to get the field details (sbx,cn,uid,mail,jobtitle) for any specific user ID?
The idea is to find any user details ( any field above, if not all) using MS graph API.
I tried this :
https://graph.microsoft.com/v1.0/ID1234?$select=sbx,cn,uid,mail,jobtitle
However, getting error:
"error": {
"code" : "BadRequest",
"message":"Resource not found for the segment 'ID1234'.",
--------------------------------------------
-------------------------------------------
}
What is the correct way of getting user details using MS graph API ? Any example please?
Thanks