Skip to content
The Chat Archive
llama-4-maverick-03-26-experimental· Meta LMArena Human Preference 140K

how do I find the members of the "Exchange Service Administrator" in Entra?

  1. User

    how do I find the members of the "Exchange Service Administrator" in Entra?

  2. Assistant

    A great question about Entra (formerly known as Azure Active Directory, or Azure AD)!

    The "Exchange Service Administrator" role is a built-in role in Entra (and Exchange Online), and its members are not directly visible in a single, straightforward location. But don't worry, I'll guide you through the steps to find them.

    You have a few options to discover the members of the "Exchange Service Administrator" role in Entra:

    Option 1: Using the Microsoft Entra admin center (web portal)

    1. Sign in to the Microsoft Entra admin center with your admin credentials.
    2. Navigate to Roles and administrators (in the left sidebar).
    3. Search for Exchange administrator (not "Exchange Service Administrator", that's the old name). Click on it.
      • Why "Exchange administrator"? In Entra, this role is now called "Exchange administrator", but it's equivalent to the old "Exchange Service Administrator" role. Microsoft unified some role names over time, so you'll see "Exchange administrator" used consistently in Entra.
    4. Click on the Exchange administrator role to open its details page.
    5. Under Members, you'll see the list of users and groups assigned to this role.

    Option 2: Using Azure AD PowerShell (Microsoft Graph)

    If you're comfortable with PowerShell, you can use the Microsoft Graph PowerShell SDK (the replacement for Azure AD PowerShell). Here's how:

    1. Install the Microsoft Graph PowerShell SDK (if you haven't already):
      • Run Install-Module Microsoft.Graph
    2. Connect to Microsoft Graph:
      • Run Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
    3. Retrieve the Exchange administrator role members:
      • Run Get-MgRoleManagementDirectoryRoleAssignment -Filter "RoleDefinitionId eq '29232cdf-9323-42fd-ade2-1d097af3e4de'" | Select-Object -ExpandProperty PrincipalId
      • What's that GUID? 29232cdf-9323-42fd-ade2-1d097af3e4de is the internal ID for the "Exchange administrator" role in Entra. You can hardcode it or retrieve it dynamically using Get-MgRoleManagementDirectoryRoleDefinition | ? {$_.DisplayName -eq "Exchange administrator"} | Select-Object -ExpandProperty Id
    4. To resolve the PrincipalId (member UPNs):
      • Pipe the output to Get-MgUser: Get-MgRoleManagementDirectoryRoleAssignment -Filter "RoleDefinitionId eq '29232cdf-9323-42fd-ade2-1d097af3e4de'" | Select-Object -ExpandProperty PrincipalId | Get-MgUser | Select-Object UserPrincipalName

    Example:

    Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
    $roleMembers = Get-MgRoleManagementDirectoryRoleAssignment -Filter "RoleDefinitionId eq '29232cdf-9323-42fd-ade2-1d097af3e4de'" | Select-Object -ExpandProperty PrincipalId | Get-MgUser | Select-Object UserPrincipalName
    $roleMembers.UserPrincipalName
    

    This will list the User Principal Names (UPNs) of the members assigned to the Exchange administrator role.

    Option 3: Using Microsoft Graph Explorer (beta)

    If you prefer a web-based interface, try Microsoft Graph Explorer:

    1. Go to the Microsoft Graph Explorer.
    2. Sign in with your admin credentials.
    3. Run the following query (beta endpoint):
      • GET https://graph.microsoft.com/beta/roleManagement/directory/roleAssignments?$filter=roleDefinitionId eq '29232cdf-9323-42fd-ade2-1d097af3e4de'
    4. In the response, look for the principalId values, which represent the members. You can then:
      • Use another Graph Explorer query to retrieve the user details: GET https://graph.microsoft.com/beta/users/{principalId} (replace {principalId} with the actual value)

    Now you know three ways to find the members of the "Exchange Service Administrator" (a.k.a. "Exchange administrator") role in Entra!

    Happy administrating!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.