Assigning a role to a list of users in a resource group
You can use the provided information to create a script that assigns a role to a list of users in a particular resource group.
Usage
This script assigns a role to multiple
users in a resource group.
- Method: assignRoleToUsersOnResourceGroup (List users, String resource_group, String role)
- Type: Boolean
Return values:
- true indicates success
- false indicates failure
Parameters
| Parameter | Type | Description |
|---|---|---|
| users | List | A list of users in the resource group to which you are assigning the role |
| resource_group | String | The resource group that contains the resource or monitor model |
| role | String | The role you are assigning to the users |