By using Resource Access Management (RAM) users, you can grant different permissions to RAM users and Alibaba Cloud account to avoid security risks caused by the exposure of the AccessKey pair of your Alibaba Cloud account. After you grant permissions to RAM users, you can allow only RAM users with the specified permissions to access or manage resources in the Function Compute console. This topic describes how to create and authorize RAM users by using an Alibaba Cloud account and how to manage resources for authorized RAM users.
Scenarios
- For security purposes, Enterprise A does not want to disclose the AccessKey pair of the Alibaba Cloud account to the employees. Enterprise A prefers to create different RAM users for the employees and grant different permissions to the RAM users.
- Only RAM users that are granted with permissions can manage resources. Resource usage and costs are not calculated separately for each RAM user. All expenses are billed to the Alibaba Cloud account of Enterprise A.
- Enterprise A can revoke the permissions of RAM users and delete the created RAM users at any time.
Step 1: Use the Alibaba Cloud account of Enterprise A to create RAM users for employees
Step 2: Grant permissions to the RAM users
- Log on to the RAM console by using your Alibaba Cloud account.
- In the left-side navigation pane, choose .
- On the Users page, find the RAM user to which you want to attach the custom policy, and click Add Permissions in the Actions column.
- In the Add Permissions panel, grant permissions to the RAM user.
- Click OK.
- Click Complete.
What to do next
After the RAM user is created by using the Alibaba Cloud account, Enterprise A can allocate the username and password or AccessKey pair of the RAM user to an employee. Users can use RAM users to log on to the Alibaba Cloud console or call API operations.
- Log on to the Alibaba Cloud console
For more information, see Log on to the Alibaba Cloud Management Console as a RAM user.
- Call an API operation
You can use the AccessKey ID and AccessKey secret of the RAM user in code to call an API operation and access Function Compute.