Create RAM users and grant only the minimum permissions required to avoid sharing your Alibaba Cloud account password or AccessKey across your organization.
Use cases
Create RAM users and grant minimum 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 Service overview 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 access control.
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 with a fixed ID and credentials, representing a person or an application. Key characteristics:
-
A RAM user can be created by an Alibaba Cloud account, or by a RAM user or RAM role with administrative rights. In either case, the created RAM user belongs to the Alibaba Cloud account of the creator.
-
A RAM user does not own resources. All usage fees are billed to the parent Alibaba Cloud account. RAM users cannot receive bills or make payments.
-
RAM users must be authorized before they can log on to the console or call API operations. After authorization, they can access resources owned by the parent Alibaba Cloud account.
-
RAM users have independent passwords or AccessKey pairs for logon.
-
An Alibaba Cloud account can create multiple RAM users to represent employees, systems, and applications.
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
Attach a system or custom policy to the RAM user. Grant only the permissions required for the user's tasks. For instructions, see Manage RAM user permissions.
Permission changes take effect in about 5 minutes.
Examples of minimum required permissions
Example 1: Allow 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: Allow 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"
}
]
}