Using Azure Active Directory
Get Group ID from Azure Active Directory Based on Group Display Name
Login to the Azure® AD Graph Explorer at:
Select
GET
as your HTTP query method.Specify the following query in the text box:
https://graph.windows.net/
<tenant>
/groups?$filter=startswith(displayName,'<groupname>
')Replace
<tenant>
with your tenant name and<groupname>
with the group name whose ID you are retrieving.Search for
objectId
of the specific group in the response. This is your group ID.
Get All Group IDs for a Certain User from Azure Active Directory
Login to the Azure AD Graph Explorer at:
Select
GET
as your HTTP query method.Specify the following query in the text box:
https://graph.windows.net/
<tenant>
/users/<username>
@<tenant>
/memberOfReplace
<tenant>
with your tenant name and<username>
with the user name whose group IDs you are retrieving.Search for
objectId
in the response for all groups wheresecurityEnabled
is set totrue
. These are your group IDs for a user.