Recently, I got a requirement to add a few users to one of my critical Azure Resource Groups. In this article, I will walk you through all the steps on how to add user to Resource Group in Azure.
Table of Contents
How To Add User To Azure Resource Group
Let us discuss a few simple approaches to do this.
Approach-1: Using Azure Portal
To add user to Azure Resource Group, follow the below steps.
1. Log in to Azure Portal.
2. Search for Resource Groups and click on the search result Resource Groups under Services, as shown below.

3. Now, click on the specific Resource Group to the one you wish to add the user.

4. On the specific Resource Group page, Click on the Access Control (IAM) link from the left navigation, and then click on the Add role assignment option from the + Add drop-down, as shown in the screenshot below.

5. Now, select the respective Role from the list and click the Next button as shown below.

6. On the Members tab, Select Assign access to option as User,groups or service principal and then click on the + Select members option. Now, search for and select the user from the list and then click on the Select button, as shown in the screenshot below.

7. Now that the respective member is selected, click on the Next button.

8. Now, click on the Review + assign button.

Now, the selected user has been added to the Azure Resource Group successfully as shown in the screenshot below.

Approach-2: Using PowerShell
We can also use the PowerShell command to achieve this. Follow the below steps.
1. Open Windows PowerShell ISE with Run as administrator mode.

2. Now, execute the below command to connect to your Azure account.
Connect-AzAccount
3. Finally, execute the below PowerShell command to add the specified user to the Azure Resource Group.
New-AzRoleAssignment -SignInName "fewlines4biju_hotmail.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com" `
-RoleDefinitionName "Contributor" `
-ResourceGroupName "newresgroup"After executing the above command, the user was added successfully to the specified Resource Group, as shown in the screenshot below.

If you wish to add multiple users simultaneously, you can use the below PowerShell command.
$userList = @("fewlines4biju_hotmail.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com", "trp_tsm.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com")
foreach ($user in $userList) {
New-AzRoleAssignment -SignInName $user `
-RoleDefinitionName "Contributor" `
-ResourceGroupName "NetworkWatcherRG"
}After executing the above command, I got the expected output, and both users have been added to the specified Resource Group, as shown in the screenshot below.

Now, to cross-check if the user has been added successfully, we can execute the below command.
Get-AzRoleAssignment -ResourceGroupName "newresgroup"After executing the above command, I got the expected output as shown in the screenshot below.

Approach-3: Using Azure CLI
Like the PowerShell command, we can also use the Azure CLI command for this purpose.
We can execute the below Azure CLI command.
az role assignment create --assignee "trp_tsm.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com" --role "Contributor" --scope /subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/newresgroupAfter executing the above command, I got the expected output, and the user has been added to the Resource Group successfully.

Video Tutorial
Conclusion
To add user to Azure Resource Group using the Azure Portal and we can also use the New-AzRoleAssignment PowerShell command to do the same as mentioned in this article.
You may also like following the articles below.
- How To Get Resource Group Name In Azure
- How To Get User Object ID In Azure Using PowerShell
- How To Disable A User In Azure AD
- How To Check User Role In Azure Portal
- Add User To Azure AD Group PowerShell

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
