This topic describes how to use the credentials of a Resource Access Management (RAM) user to log on to the Object Storage Service (OSS) console.
Background information
You can use the credentials of a RAM user to log on to the OSS console in the following scenarios:
A bucket that is created by using an Alibaba Cloud account stores internal documents of your enterprise. To share specific internal documents with your employees, you can create RAM users for your employees and grant permissions to the RAM users. The RAM users can log on to the OSS console to view these documents.
Some of your partners need to periodically view specific materials. You can store the materials in a bucket, create RAM users for the partners, and grant the RAM users the permissions to access the bucket. This way, the partners can log on to the OSS console as RAM users to periodically view the materials.
Step 1: Create a RAM user
Sign in to the RAM console using your Alibaba Cloud account or as a RAM user with administrative permissions (a user to which the
AliyunRAMFullAccesspolicy is attached).In the left-side navigation pane, choose .
On the Users page, click Create User.
On the Create User page, in the User Account Information section, configure the user's basic information.
Logon Name (required): Up to 64 characters. Allows letters, digits, periods (.), hyphens (-), and underscores (_).
Display Name (optional): The name can be up to 128 characters long.
Tag (optional): Click
, then enter a tag key and tag value to categorize and manage users.
NoteClick Add User to create multiple RAM users in bulk.
In the Access Mode section, select an access mode based on the user type.
ImportantAs a security best practice, select only one access mode per user to separate human console access from programmatic application access. If a RAM user needs both console sign-in and API call capabilities, you can select both access modes. After you select Permanent AccessKey, you must select the I confirm that I must create an AccessKey checkbox to continue.
A leaked AccessKey pair compromises your account. Use Security Token Service (STS) tokens (temporary credentials) instead to reduce risk. Best practices for using access credentials to call Alibaba Cloud APIs.
Console access
Select Console Access.
Set Logon Password: Auto-generate or set a custom password. Custom passwords must meet the configured complexity requirements. Set a password policy for RAM users.
Password Reset: Specify whether the user must reset the password at next sign-in.
Enable MFA: MFA is required for all users by default. To change this setting, see Manage RAM user security settings. Users must bind an MFA device at first sign-in. Bind an MFA device.
Programmatic access
Select Permanent AccessKey.
The system automatically creates an AccessKey ID and AccessKey secret for the RAM user.
ImportantThe AccessKey secret is displayed only at creation and cannot be retrieved later. You must immediately download or copy and save the AccessKey secret. A leaked AccessKey pair compromises all resources under your account. Create an AccessKey pair.
Step 2: Grant permissions to the RAM user
Log on to the RAM console.
In the left-side navigation pane, choose .
On the Users page, find the target RAM user and click Actions column > Attach Policy.
You can also select multiple RAM users and click Attach Policy below the user list for batch authorization.
In the Grant Permission panel, configure the following settings:
Resource scope:
Account level: Permissions apply to all resources in your Alibaba Cloud account.
Resource group level: Permissions apply only within the specified resource group. After logging on, the RAM user must switch to the authorized resource group in the top navigation bar.
NoteThe system marks high-risk system policies (such as AdministratorAccess and AliyunRAMFullAccess) with a warning indicator. These policies typically grant full control over all cloud resources or full management of RAM. Grant these policies with caution.
For resource group authorization examples, see Control RAM user access to specific ECS instances.
Principal:
The principal is the RAM user receiving permissions. From the Users page, the system auto-selects the current user. From the Grants page, you must manually select the user. Batch selection is supported.
Permission policy:
System policy: Search and select. Filter by product name (e.g.,
ECS,OSS), access level (e.g.,ReadOnly,FullAccess), or full policy name. For example, to grant permissions for financial management (expenses and costs), search forBSSto findAliyunBSSFullAccess(full access to Billing and Cost Management) and other finance-related policies.The following table lists system policy names for commonly requested Alibaba Cloud products to help you quickly find the right policy.
Product
System policy name
Access level
Billing and cost management (finance)
AliyunBSSFullAccessFull access
Cloud Monitor
AliyunCloudMonitorReadOnlyAccessRead-only
China Gateway (Website Builder)
AliyunWebsiteBuildFullAccessFull access
Alibaba Cloud DevOps
AliyunYunxiaoFullAccessFull access
Model Studio (Bailian)
AliyunBailianFullAccessFull access
Alibaba Cloud DNS
AliyunDNSFullAccessFull access
SSL Certificates Service
AliyunYundunCertFullAccessFull access
Cloud Phone
AliyunECDFullAccessFull access
Support Center
AliyunSupportFullAccessFull access
Resource Center
AliyunResourceCenterFullAccessFull access
AgentBay
AliyunAgentBayFullAccessFull access
Security Center
AliyunYundunSASFullAccessFull access
If you cannot find the policy for your target product, see the System policy reference for the complete list, or create a custom policy for fine-grained access control.
Custom policy: You must Create a custom policy before you can grant it.
Pagination limit for select all: The policy list is paginated. Selecting all applies only to the current page. After you switch pages, previously selected policies remain in the selected list, but policies on the new page are not automatically selected; you must select them page by page.
Quickly grant administrator permissions: To grant administrator permissions, search for
AdministratorAccessin the search box and select it directly, instead of selecting policies page by page. Selecting this policy triggers a high-risk authorization warning.
(Optional) Description: Enter the authorization reason or scenario for audit purposes.
Click Confirm.
Review the authorization result and click Close.
Step 3: Log on to the OSS console as the RAM user
In the left-side navigation pane of the RAM console, click Overview.
In the Basic Information section on the Overview tab, obtain the logon URL of the RAM user.
Click the logon link of the RAM user. Use the username of the RAM user and click Next. Enter the credentials of the RAM user to log on to the Alibaba Cloud Management Console.
Access OSS by using the OSS console link.