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.
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>/memberOf
Replace <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
where securityEnabled is set to
true. These are your group IDs for a user.