Main Content

Using Azure Active Directory

Get Group ID from Azure Active Directory Based on Group Display Name

  1. Login to the Azure® AD Graph Explorer at:

    https://graphexplorer.azurewebsites.net

  2. Select GET as your HTTP query method.

  3. 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.

  4. 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

  1. Login to the Azure AD Graph Explorer at:

    https://graphexplorer.azurewebsites.net

  2. Select GET as your HTTP query method.

  3. 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.

  4. Search for objectId in the response for all groups where securityEnabled is set to true. These are your group IDs for a user.

Related Topics

External Websites