Grant permissions to a RAM user
To access EMR Workflow as a RAM user and perform operations such as creating and deleting workspaces, provisioning new scheduling resource groups, and binding or unbinding clusters or cluster templates, you must grant the required permissions to the RAM user.
Prerequisites
You have a RAM user. For detailed instructions, see Create a RAM user.
Procedure
Console operations
-
Log on to the RAM console with your Alibaba Cloud account (main account).
In the left-side navigation pane, choose .
On the Users page, find the required RAM user, and click Add Permissions in the Actions column. You can also select multiple RAM users and click Add Permissions in the lower part of the page to grant permissions to the RAM users at a time.
-
In the Add Authorization panel, add the AliyunEMRWorkflowAdmin policy to the RAM user.
Parameter
Description
Scope
Select the scope of the permissions:
-
Entire cloud account: The policy applies within the current Alibaba Cloud account.
-
Specified resource group: The policy applies only within the specified resource group.
Principal
The identity that receives the permissions. By default, this is the current RAM user, but you can also add other RAM users.
Select Permissions
Search for and select the AliyunEMRWorkflowAdmin policy under system policy.
-
-
Click OK.
Click Close.
API operations
-
Log on to the RAM console with the Alibaba Cloud account (main account) that owns the RAM user.
-
Create a custom policy named AliyunEmrWorkflowPolicyForApi.
-
In the left-side navigation pane, choose .
-
Click Create policy.
-
On the Create Policy page, click the Script tab.
-
Enter the following policy content, and then click OK.
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": [ "emrstudio:*" ], "Resource": "acs:emrstudio:*:*:*" } ] } -
Enter AliyunEmrWorkflowPolicyForApi as the policy name, and then click OK.
-
-
Grant permissions to the RAM user.
In the left-side navigation pane, choose .
-
On the User page, find the target RAM user, and then click Add Permission in the Actions column.

You can also select multiple RAM users and click Add Permission below the user list to grant permissions to multiple users at once.
-
In the Add Authorization panel, add the AliyunEmrWorkflowPolicyForApi policy to the RAM user.
Parameter
Description
Scope
Leave the scope set to the default, Account level, which applies the policy to the entire Alibaba Cloud account.
Principal
The identity that receives the permissions. By default, this is the current RAM user, but you can also add other RAM users.
Select Permissions
Search for and select the AliyunEmrWorkflowPolicyForApi policy under custom policies.
-
Click OK.
Click Close.