Issue with RBAC in Exchange Online Role Groups

Manu 20 Reputation points
2025-03-24T11:23:38.1133333+00:00

In designing a support operational model, several custom role groups have been created with specific permissions. Testing in a development tenant was successful, but in the production environment, some users are missing access to certain cmdlets (e.g., Get-MessageTrace, Add-RecipientPermission) despite being assigned to the correct role group.

New-RoleGroup -Name "Exchange Operator" -Description "Handles simple user-related tasks and basic issue resolution. Members can manage mailbox permissions, track messages, and view quarantined emails." -DisplayName "Exchange Operator" -ManagedBy "[******@pepe.com](mailto:******@pepe.com)", "[******@pepe.com](mailto:******@pepe.com)" -Roles "Mail Recipients","Message Tracking","View-Only Recipients","User Options"   

New-RoleGroup -Name "Exchange Engineer" -Description "Handles more complex tasks and advanced troubleshooting. Includes all Operator permissions, plus management of distribution groups, transport rules, and quarantined emails." -DisplayName "Exchange Engineer" -ManagedBy "[******@pepe.com](mailto:******@pepe.com)", "[******@pepe.com](mailto:******@pepe.com)" -Roles "Mail Recipients","Message Tracking","View-Only Recipients","User Options", "Distribution Groups", "Mail Tips", "Migration", "Transport Rules", "Mailbox Search", "Audit Logs", "Mail Recipient Creation", "Security Reader"

Access is granted through PIM roles in Azure, which has been functioning properly until now. What could be causing the discrepancies in cmdlet access in the production environment?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,188 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2025-03-25T13:21:07.0866667+00:00

    Thats not supported if you are using PIM groups for custom roles:

    https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-roles

    User's image

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-03-25T07:17:15.8+00:00

    Hi,@Manu

    Thanks for posting your question in the Microsoft Q&A forum.

    Based on your description, you assigned permissions to the user, but the user still doesn't seem to be able to use some of the commands.

    What is the error reported when the user is unable to use these commands?

    Has there been any attempt to set up role groups in EAC and does the same problem occur?

    User's image

    0 comments No comments

  2. Manu 20 Reputation points
    2025-03-25T08:20:22.63+00:00

    No "error" shown.

    The issue is that certain options don’t even appear in the GUI for these users. For example, members of the Operator group cannot run a message trace — the option simply isn’t visible. Similarly, members of the Engineering group are unable to add recipient permissions to a mailbox, as that option is also missing (grant access and send on behalf are present).

    This behavior is consistent both in the Exchange Admin Center (GUI) and when using PowerShell — the relevant cmdlets aren’t available either.

    Regarding the second part of your question: yes, we’ve also tried assigning the roles directly in the Exchange Admin Center (instead of using PIM in Azure), but the result is exactly the same.

    0 comments No comments

  3. Manu 20 Reputation points
    2025-03-25T13:12:33.2966667+00:00

    To add more info, if I assign users directly to the role created on the EAC, permissions work fine! It only seems to fail when using PIM Role

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.