Reputation: 429
Is there a way for me to get back ONLY users when I call List group transitive users in graph API?
The response I get has objects for groups as well as users EG:
{group: IT support},
{user: Kevin},
{user: Bob},
{user: Phil},
{group: Developers},
{user:phil}
Id like to be able to filter out the group objects but no dice. Has anyone been able to do this before? Thanks
Upvotes: 0
Views: 89
Reputation: 15619
Usually, we can use $filter query parameter to retrieve the response we need, but it seems that '@odata.type' is not supported to be a query param here. I will double confirm with Azure support engineer.
By the way, the response is in json format, you can write a filter yourself to get the user objects only.
Update:
I have got an response from the Azure support engineer, '@odata.type' is not supported to be a query param here. So you need to deal with the data by yourself.
Upvotes: 1