How can I assign RBAC roles on the Tenant Root Management Group?

AxD 671 Reputation points
2022-08-05T16:49:06.147+00:00

I'd like to assign two of my users to the Contributor role on the Tenant Root Group management group scope, in order for that role assignment to span all my subscriptions.

However, I don't see any option to add role assignments on the Tenant Root Group management group scope.

How can I do this?

Your answer is appreciated.

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
978 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2022-08-08T23:44:12.5+00:00

    @AxD Thank you for your post and I apologize for the delayed response!

    When it comes to assigning users the Contributor role at the Management Group scope, you should be able to follow our Assign Azure roles using Azure PowerShell documentation to accomplish this.

    Prerequisites To assign roles, you must have:

    • Microsoft.Authorization/roleAssignments/write permissions, such as User Access Administrator or Owner.
    • PowerShell in Azure Cloud Shell or Azure PowerShell.
    • The account you use to run the PowerShell command must have the Azure Active Directory Graph Directory.Read.All and Microsoft Graph Directory.Read.All permissions.
    • Microsoft.Authorization/roleAssignments/write permissions, such as User Access Administrator or Owner.

    #Determine who needs access - Azure AD user
    Get-AzADUser -StartsWith <userName>
    
    #Select the appropriate role - List the details of a particular role.
    Get-AzRoleDefinition -Name <roleName>
    
    #SIdentify the needed scope - Management group scope
    Get-AzManagementGroup
    
    #Assign role
    New-AzRoleAssignment -SignInName <emailOrUserprincipalname> -RoleDefinitionName <roleName> -Scope /providers/Microsoft.Management/managementGroups/<groupName>
    

    229298-image.png

    Additional Links: Assign a role for a user at a management group scope - Example az role assignment CLI Scope examples Scope and ARM templates

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.