If multiple users in your enterprise need to access the same services, create RAM users and grant only the minimum permissions required. This avoids sharing your Alibaba Cloud account password or AccessKey.
Use cases
Create RAM users and grant the minimum required permissions in these scenarios:
-
A RAM user calls AI Search Open Platform services through an API or SDK. The user authenticates with anAccessKey.
-
A RAM user uses the AI Search Open Platform console. Common scenarios include:
-
Creating a workspace and activating AI Search Open Platform.
-
Managing API keys.
ImportantIn AI Search Open Platform, API keys are scoped to a specific workspace. A RAM user with a valid API key for a workspace can call all services in that workspace through an API or SDK without separate RAM authorization.
-
Using the Experience Center to try services such as document parsing and document chunking.
-
Performing an evaluation on a RAG chain.
-
Permission policies
System policies
Alibaba Cloud provides and maintains two system policies for AI Search Open Platform. You can use but not modify them:
-
AliyunOpenSearchFullAccess: Grants full access to OpenSearch services. Includes all permissions in the Permission list. Assign with caution. -
AliyunOpenSearchReadOnlyAccess: Grants read-only access to OpenSearch services. Includes all List and Describe control API permissions, and all traffic API permissions in the Permission list.
Custom policies
Create custom policies for fine-grained permissions.
Permission list
Control API permissions
|
Category |
API |
RAM action |
Resource |
Description |
|
Workspace |
|
|
|
Creates a workspace and activates AI Search Open Platform. Note
AI Search Open Platform is free to activate. You are not charged until you use services. |
|
|
|
|
Modifies a workspace. |
|
|
|
|
|
Gets the details of a workspace. |
|
|
|
|
|
Lists workspaces. |
|
|
|
|
|
Lists services. |
|
|
Access credential |
|
|
|
Creates an access credential. |
|
|
|
|
Deletes an access credential. |
|
|
|
|
|
Modifies an access credential. |
|
|
|
|
|
Gets the details of an access credential. |
|
|
|
|
|
Lists access credentials. |
|
|
Remaining free quota |
|
|
|
Gets the remaining free quota for a workspace. Note
|
|
Experience data |
|
|
|
Adds experience data. |
|
|
|
|
Deletes experience data. |
|
|
|
|
|
Gets the details of experience data. |
|
|
|
|
|
Lists experience data. |
|
|
Asynchronous task |
|
|
|
Creates an asynchronous document parsing task. |
|
|
|
|
Gets asynchronous document parsing task details. |
|
|
|
|
|
Lists asynchronous document parsing tasks. |
|
|
Evaluation |
|
|
|
Creates an evaluation task. |
|
|
|
|
Gets the details of an evaluation task. |
|
|
|
|
|
Lists evaluation tasks. |
|
|
|
|
|
Deletes an evaluation task. |
|
|
Model service |
|
|
|
Creates a service or model. |
|
|
|
Activates the service configuration immediately. |
||
|
|
|
Modifies the service or model configuration. |
||
|
|
|
Deletes the service or model configuration. |
||
|
|
|
|
Lists service or model configurations. |
|
|
|
|
Gets the details of a service or model configuration. |
||
|
|
|
|
Gets the schema of a MaxCompute table. |
|
|
|
|
|
Stops a service. |
|
|
|
|
|
Resumes a service. |
|
|
Model service - Service deployment |
|
|
|
Gets function restrictions: available deployment regions, model categories, model types, and models. |
Traffic API permissions
|
API |
RAM action |
Resource |
Description |
|
|
|
|
Text embedding service. |
|
|
|
|
Text sparse embedding service. |
|
|
|
|
Creates an asynchronous document analysis request. |
|
|
|
|
Gets the result of an asynchronous document analysis request. |
|
|
|
|
Gets the result of a synchronous document analysis request. |
|
|
|
|
Creates an asynchronous image analysis request. |
|
|
|
|
Gets the result of an asynchronous image analysis request. |
|
|
|
|
Gets the result of a synchronous image analysis request. |
|
|
|
|
Document chunking service. |
|
|
|
|
Re-ranking service. |
|
|
|
|
Content generation (LLM) service. |
|
|
|
|
Query analysis service. |
|
|
|
|
Embedding fine-tuning service. |
|
|
|
|
Web search service. |
|
|
|
|
Multimodal embedding service. |
|
|
|
|
Creates an asynchronous video frame extraction task. |
|
|
|
|
Gets the status of a video frame extraction task. |
|
|
|
|
Creates an asynchronous audio transcription task. |
|
|
|
|
Gets the status of an asynchronous audio transcription task. |
|
|
|
|
Image object detection service. |
|
|
|
|
Multimodal re-ranking service. |
|
|
|
|
Creates an asynchronous video summarization task. |
|
|
|
|
Gets the status of a video summarization task. |
|
|
|
|
Creates an asynchronous video segmentation task. |
|
|
|
|
Gets the status of a video segmentation task. |
Procedure
Step 1: Create a RAM user
A RAM user is a physical identity that has a fixed ID and credential information. A RAM user represents a person or an application. A RAM user has the following characteristics:
-
A RAM user can be created by an Alibaba Cloud account. In this case, the RAM user belongs to the Alibaba Cloud account. A RAM user can also be created by a RAM user or a RAM role that has administrative rights. In this case, the RAM user belongs to the Alibaba Cloud account that creates the RAM user or the RAM role.
-
A RAM user does not own resources. Resource usage fees of the RAM user are billed to the Alibaba Cloud account to which the RAM user belongs. A RAM user does not receive individual bills and cannot make payments.
-
Before RAM users can log on to the Alibaba Cloud Management Console or call operations, they must be authorized by Alibaba Cloud accounts. After RAM users are authorized, the RAM users can access resources that are owned by the Alibaba Cloud accounts.
-
RAM users have independent passwords or AccessKey pairs for logon.
-
An Alibaba Cloud account can create multiple RAM users. RAM users can be used to represent employees, systems, and applications within an enterprise.
For instructions, see Create a RAM user.
Step 2: Create a custom permission policy
See Examples of minimum required permissions, select the required permissions from the Permission list, and combine them into a custom policy. For instructions, see Create a custom policy.
Step 3: Authorize the RAM user
Assign a system or custom policy to the RAM user. Grant only the permissions required for the user's tasks. For instructions, see Grant permissions to a RAM user.
Permission changes take effect in about 5 minutes.
Examples of minimum required permissions
Example 1: Allows a RAM user to list workspaces, check the remaining free quota, and call the document chunking service in the default workspace.
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "searchplat:ListWorkspaces",
"Resource": "acs:searchplat:*:*:workspaces/*"
},
{
"Effect": "Allow",
"Action": [
"searchplat:DescribeWorkspace",
"searchplat:GetDocumentSplit",
"searchplat:DescribeMeasure"
],
"Resource": "acs:searchplat:*:*:workspaces/default"
}
]
}
Example 2: Allows a RAM user to list workspaces, check the remaining free quota, manage API keys, and call the document chunking service in the default workspace.
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"searchplat:ListWorkspaces"
],
"Resource": "acs:searchplat:*:*:workspaces/*"
},
{
"Effect": "Allow",
"Action": [
"searchplat:DescribeWorkspace",
"searchplat:WriteCredentials",
"searchplat:GetDocumentSplit",
"searchplat:DescribeCredentials",
"searchplat:DescribeMeasure"
],
"Resource": "acs:searchplat:*:*:workspaces/default"
}
]
}