UsingAzureActive Directory
Get Group ID fromAzureActive 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/
/groups?$filter=startswith(displayName,'
')Replace
with your tenant name and
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 fromAzureActive 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/
/users/
@
/memberOfReplace
with your tenant name and
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.