I'm currently developing an application that uses an Azure AD instance. I'm trying to query this AD to sync the users to my system. I want to retrieve all the users and their groups. The Microsoft Graph API has the following function for this operation:
https://graph.microsoft.com/v1.0/users?$expand=memberOf
However, this gives me the same response as calling: https://graph.microsoft.com/v1.0/users
. Users in my AD do have groups and I did try calling the api with $select
instead of $expand
, but also without result.
Is this a bug? Am I doing something wrong?
Thanks!