Learn how to get started with the Panxi Intelligent Creation Platform. This topic describes the preparation and integration process and how to grant RAM authorization.
Server-side integration
Server-side integration with the Panxi Intelligent Creation Platform uses OpenAPI.
You can generate an AccessKey pair from your Alibaba Cloud account to make API calls.
The Alibaba Cloud account that is used to generate the AccessKey pair must have RAM authorization.
For more information about how to call OpenAPI, see Use the Panxi Intelligent Creation Platform OpenAPI and SDK.
RAM authorization configuration
Create a RAM user
A Resource Access Management (RAM) user is an identity in RAM. You can create RAM users for your Alibaba Cloud account and grant them permissions. This lets you grant different permissions to different RAM users for resource access.
Procedure
Log on to the RAM console as an Alibaba Cloud account or a RAM administrator.
In the navigation pane on the left, choose Identity Management > Users.
On the Users page, click Create User.
On the Create User page, in the User Account Information section, set the basic information for the user.
Logon Name: The name can contain letters, digits, periods (.), hyphens (-), and underscores (_). The name can be up to 64 characters long.
Display Name: The name can contain up to 128 characters.
Tags: Click
and then enter a tag key and tag value. You can attach tags to the RAM user to simplify user management.
Note
You can click Add User to create multiple RAM users in a batch.
In the Access Mode section, select an access mode and set the required parameters.
For enhanced security, we recommend that you select only one access mode. This practice separates human users from application users.
Console Access
If the RAM user is a human user, enable console access. This allows the user to access Alibaba Cloud with a username and logon password. Set the following parameters:
Console Logon Password: Select Automatically generate password or Custom password. If you select Custom password, the password must comply with the password complexity rules.
Password Reset Policy: Select whether the RAM user must reset the password at the next logon.
MFA Policy: Select whether to enable Multi-Factor Authentication (MFA) for the RAM user. If you enable MFA, an MFA device must be attached to the RAM user by either the root account or the RAM user.
OpenAPI Call Access
If the RAM user is an application, enable OpenAPI call access. This allows the application to access Alibaba Cloud with an AccessKey pair. After you enable this option, the system automatically generates an AccessKey ID and an AccessKey secret for the RAM user.
Important
The AccessKey secret for a RAM user is displayed only when the user is created and cannot be retrieved later. You must keep the AccessKey secret secure.
Click OK.
Follow the on-screen instructions to complete the security authentication.
What to do next
Grant permissions to the RAM user.
By default, a new RAM user has no permissions. You must grant permissions to the RAM user to allow access to the required cloud resources.
Log on to the Alibaba Cloud Management Console as the RAM user or use the AccessKey pair to call an API.
Grant permissions to a RAM user
You can grant a system policy or a custom policy to a RAM user. This allows the user to access Alibaba Cloud resources based on the permissions that are defined in the policy. Follow the principle of least privilege by granting only the necessary permissions.
Limits
A limit applies to the maximum number of system and custom policies that can be attached to a RAM user.
Method 1: Grant permissions to a RAM user on the Users page
Log on to the RAM console as a RAM administrator.
In the navigation pane on the left, choose Identity Management > Users.
On the Users page, find the RAM user that you want to manage and click Add Permissions in the Actions column.
You can also select multiple RAM users and click Add Permissions at the bottom of the list to grant permissions in a batch.
In the Add Permissions panel, grant permissions to the RAM user.
Select a resource scope.
Account Level: The permissions take effect on the current Alibaba Cloud account.
Resource Group Level: The permissions take effect on the specified resource group.
Important
For resource group-level authorization to be effective, both the Alibaba Cloud service and the resource type must support resource groups.
Select a principal.
The principal is the RAM user to whom you want to grant permissions. The RAM user that you selected is automatically specified as the principal.
Select access policies.
An access policy is a set of permissions. Policies are categorized into the following two types. You can select multiple access policies.
System Policy: Created by Alibaba Cloud. Alibaba Cloud maintains and updates the policy versions. You can use system policies but cannot modify them.
Note
The system automatically identifies high-risk system policies, such as AdministratorAccess and AliyunRAMFullAccess. When you grant permissions, avoid granting high-risk access policies unless they are necessary.
Custom Policy: Managed by you. You maintain and update the policy versions. You can create, update, and delete custom policies.
Click Confirm to create the authorization.
Click Close.
Method 2: Grant permissions to a RAM user on the Grants page
Log on to the RAM console as a RAM administrator.
In the navigation pane on the left, choose Permission Management > Grants.
On the Grants page, click Grant Permission.
In the Grant Permission panel, grant permissions to the RAM user.
Select a resource scope.
Account Level: The permissions take effect on the current Alibaba Cloud account.
Resource Group Level: The permissions take effect on the specified resource group.
Important
For resource group-level authorization to be effective, both the Alibaba Cloud service and the resource type must support resource groups.
Select a principal.
The principal is the RAM user to whom you want to grant permissions. You can select multiple RAM users.
Select access policies.
An access policy is a set of permissions. Policies are categorized into the following two types. You can select multiple access policies.
System Policy: Created by Alibaba Cloud. Alibaba Cloud maintains and updates the policy versions. You can use system policies but cannot modify them.
Note
The system automatically identifies high-risk system policies, such as AdministratorAccess and AliyunRAMFullAccess. When you grant permissions, avoid granting high-risk access policies unless they are necessary.
Custom Policy: Managed by you. You maintain and update the policy versions. You can create, update, and delete custom policies.
Click OK.
Click Close.
Log on to the Alibaba Cloud Management Console as a RAM user
Updated on: November 27, 2023 16:38:44
This topic describes how a RAM user can log on to the Alibaba Cloud Management Console, including the available logon portals and the logon procedure.
Logon portals
General logon URL
Go to the RAM user logon page.
On the Alibaba Cloud account logon page, click RAM User.
Alibaba Cloud account-specific logon URL
Log on to the RAM console as an Alibaba Cloud account. On the Overview page, in the Account Information section, you can find the RAM user logon URL. RAM users can use this URL to log on to the Alibaba Cloud Management Console.
RAM user-specific logon URL
You can use the
usernameparameter in the logon URL to specify the RAM username. This lets you skip entering the username during logon. You can click Next and enter the password directly. Theusernameuses the User Principal Name (UPN) format, which is the user logon name that is displayed in the user list of the RAM console. For example, a RAM user named Alice@example.onaliyun.com can usehttps://signin.aliyun.com/login.htm?username=Alice@example.onaliyun.comto log on to the Alibaba Cloud Management Console.
Log on with a RAM username and password
The following steps describe how a RAM user logs on to the Alibaba Cloud Management Console using the general logon URL.
Go to the Alibaba Cloud Management Console logon page.
On the Log on with RAM user tab, enter the RAM username, and click Next.
Method 1: Log on with the default domain name. The logon format for the RAM user is
<UserName>@<AccountAlias>.onaliyun.com. For example, username@company-alias.onaliyun.com.Note
<UserName>is the name of the RAM user, and<AccountAlias>.onaliyun.comis the default domain name.Method 2: Log on with an account alias. The logon format for the RAM user is
<UserName>@<AccountAlias>. For example, username@company-alias.Note
<UserName>is the name of the RAM user, and<AccountAlias>is the account alias.Method 3: If you created a domain alias, you can also use it to log on. The logon format for the RAM user is
<UserName>@<DomainAlias>. For example, username@example.com.Note
<UserName>is the name of the RAM user, and<DomainAlias>is the domain alias.
Enter the logon password for the RAM user, and then click Log On.
(Optional) If MFA is enabled for the user, enter the verification code generated by the virtual MFA device or authenticate using a U2F security key.