Hi @Hi @devopsfj
The easiest way is to use the /beta
endpoint to list all attributes of the target user, both basic and custom. Otherwise, you can only use the SDK to filter its result set, which I do not recommend.
https://graph.microsoft.com/beta/users/{user id}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.