Skip to main content

RAM permissions for Alibaba Cloud Model Studio

If a RAM user or RAM role needs to manage Alibaba Cloud Model Studio, access its knowledge bases, or use features such as Data Management, prompt engineering, and long-term memory through APIs, you must first grant the required RAM permissions.

RAM permissions: RAM permissions are divided into system policies and custom policies. System policies allow you to quickly configure permissions for common scenarios. If you require fine-grained control over permissions, such as restricting a specific RAM user from calling a specific API in the API directory, you can use a custom policy. You can also combine these two types of policies. For more information, see Overview of access policies.

System policies

System policies are a set of permissions created and managed by Alibaba Cloud. You can attach these policies to a RAM user or a RAM role, but you cannot modify them. Alibaba Cloud maintains and updates these policies. Alibaba Cloud Model Studio provides the following system policies:
Read Permission Management to learn how to use and select system policies.
Alibaba Cloud account that has activated Alibaba Cloud Model Studio is granted the AliyunBailianFullAccess system policy and permissions for all workspaces.
System policy nameSystem policy descriptionControl plane permission descriptionData permission description
AliyunBailianFullAccessGrants full permissions for permission management and data permissions.
Note: These are not data layer permissions and do not include workspace permissions.
Grants all control plane permissions, including the following:Grants data management permissions, including the following:
AliyunBailianReadOnlyAccessGrants partial read-only permissions on the control plane and partial read-only data permissions.
Note: These are not data layer permissions and do not include workspace permissions.
Grants partial read-only permissions on the control plane, including the following:
  • Read-only permissions for Alibaba Cloud Model Studio workspaces, accounts, and all API-KEYs.
  • You do not have the required permissions to enable features for Alibaba Cloud Model Studio.
  • Basic permissions required to pay for subscription orders. Learn what other permissions are required.
Grants read-only data permissions.
AliyunBailianControlFullAccessGrants some management permissions on the control plane.Grants some management permissions on the control plane, including the following:
  • Management permissions for Alibaba Cloud Model Studio workspaces, accounts, and all API-KEYs.
  • Does not grant permission to activate Alibaba Cloud Model Studio features.
  • Basic permissions required to pay for subscription orders. Learn what other permissions are required.
No permissions.
AliyunBailianControlReadOnlyAccessGrants only read-only permissions on the control plane.Grants read-only permissions on the control plane, including the following:
  • Read-only permissions for Alibaba Cloud Model Studio workspaces, accounts, and all API-KEYs.
  • Does not grant permission to activate Alibaba Cloud Model Studio features.
  • Basic permissions required to pay for subscription orders. Learn what other permissions are required.
No permissions.
AliyunBailianDataFullAccessGrants only data permissions.
Note: These are not data layer permissions and do not include workspace permissions.
No permissions.Grants data management permissions, including the following:
AliyunBailianDataReadOnlyAccessGrants only read-only data permissions.
Note: These are not data layer permissions and do not include workspace permissions.
No permissions.Grants read-only data permissions.

Custom policies

Custom policies are sets of permissions that you create and manage. They can be created and managed by an Alibaba Cloud account or a RAM user that is granted the AliyunRAMFullAccess system policy. You are responsible for maintaining and updating the versions of your custom policies. The permissions in a custom policy can be updated or deleted at any time.
APIs for knowledge bases, Data Management, prompt engineering, and long-term memory now support custom policies. You can select the required permissions from the list below to create a custom policy and grant it to a RAM user to achieve least privilege. For more information about how to create a custom policy, see Configure a custom policy.

Features

API

Required permission to call the API

Permission description

Knowledge base

CreateIndex - Create a knowledge base

sfm:CreateIndex

For more information, see Authorization information.

GetIndexJobStatus - Query the status of a knowledge base creation task

sfm:GetIndexJobStatus

For more information, see Authorization information.

SubmitIndexJob - Submit a knowledge base creation task

sfm:SubmitIndexJob

For more information, see Authorization information.

SubmitIndexAddDocumentsJob - Submit a task to append data to a knowledge base

sfm:SubmitIndexAddDocumentsJob

For more information, see Authorization information.

Retrieve a knowledge base

sfm:Retrieve

For more information, see Authorization information.

ListIndexDocuments - Query the list of files in a knowledge base

sfm:ListIndexFiles

For more information, see Authorization information.

ListChunks - Query the list of shards in an index

sfm:ChunkList

For more information, see Authorization information.

ListIndices - Query the list of knowledge bases

sfm:ListIndex

For more information, see Authorization information.

DeleteIndex - Delete a knowledge base

sfm:DeleteIndex

For more information, see Authorization information.

DeleteIndexDocument - Delete a file from a knowledge base

sfm:DeleteIndexDocument

For more information, see Authorization information.

Data Management

AddCategory - Add a category

sfm:AddCategory

For more information, see Authorization information.

ListCategory - List categories

sfm:ListCategory

For more information, see Authorization information.

DeleteCategory - Delete a category

sfm:DeleteCategory

For more information, see Authorization information.

ApplyFileUploadLease - Request a file upload lease

sfm:ApplyFileUploadLease

For more information, see Authorization information.

AddFile - Add a file

sfm:AddFile

For more information, see Authorization information.

DescribeFile - Query file status

sfm:DescribeFile

For more information, see Authorization information.

ListFile - List files

sfm:ListFile

For more information, see Authorization information.

DeleteFile - Delete a file

sfm:DeleteFile

For more information, see Authorization information.

UpdateFileTag - Update a file tag

sfm:UpdateFileTag

For more information, see Authorization information.

Prompt engineering

CreatePromptTemplate - Create a prompt template

sfm:CreatePromptTemplate

For more information, see Authorization information.

Get a prompt template

sfm:GetPromptTemplate

For more information, see Authorization information.

Update a prompt template

sfm:UpdatePromptTemplate

For more information, see Authorization information.

Delete a prompt template

sfm:DeletePromptTemplate

For more information, see Authorization information.

Get a list of prompt templates

sfm:ListPromptTemplates

For more information, see Authorization information.

Long-term memory

CreateMemory - Create a long-term memory

sfm:CreateMemory

For more information, see Authorization information.

GetMemory - Get a long-term memory

sfm:GetMemory

For more information, see Authorization information.

UpdateMemory - Update a long-term memory

sfm:UpdateMemory

For more information, see Authorization information.

DeleteMemory - Delete a long-term memory

sfm:DeleteMemory

For more information, see Authorization information.

ListMemories - Get a list of long-term memories

sfm:ListMemories

For more information, see Authorization information.

CreateMemoryNode - Create a memory segment

sfm:CreateMemoryNode

For more information, see Authorization information.

GetMemoryNode - Get a memory segment

sfm:GetMemoryNode

For more information, see Authorization information.

UpdateMemoryNode - Update a memory segment

sfm:UpdateMemoryNode

For more information, see Authorization information.

DeleteMemoryNode - Delete a memory segment

sfm:DeleteMemoryNode

For more information, see Authorization information.

ListMemoryNodes - Get a list of memory segments

sfm:ListMemoryNodes

For more information, see Authorization information.

FAQ

Feature name

Required RAM permissions

Model calling

Use an Alibaba Cloud account to grant the AliyunBailianFullAccess system policy to your RAM user or RAM role in the Resource Access Management (RAM) console. Other control plane permissions are not sufficient.

Application observability

Use an Alibaba Cloud account to grant the AliyunBailianFullAccess (other control plane permissions are not sufficient), AliyunRAMFullAccess, and AliyunTracingAnalysisFullAccess system policies to your RAM user or RAM role in the RAM console.

Pay for subscription orders

Use your Alibaba Cloud account in the Resource Access Management (RAM) console to configure the AliyunBSSOrderAccess system policy and permission management for your RAM user (or RAM role) by selecting one of the following policies: AliyunBailianFullAccess, AliyunBailianReadOnlyAccess, AliyunBailianControlFullAccess, or AliyunBailianControlReadOnlyAccess.

Yes, it does. The AdministratorAccess policy includes the AliyunBailianFullAccess system policy. A RAM user with the AdministratorAccess system policy has full permissions for permission management and data permissions by default.
Note: These are not data layer permissions and do not include workspace permissions.
Token Plan
Model Playground
Fine-tuning
Model Compression
Statistics and Monitoring
Support