All Products
Search
Document Center

OpenSearch:Create a RAM user and grant permissions

Last Updated:Oct 19, 2026

You must grant permissions to a RAM user before the RAM user can call OpenSearch LLM-Based Conversational Search Edition by using API operations or SDKs with an AccessKey pair for authentication, or use OpenSearch LLM-Based Conversational Search Edition in the console. If multiple users in your enterprise need to access the service collaboratively, you can create multiple RAM users and grant each of them only the minimum permissions they require. This prevents multiple users from sharing the password or AccessKey pair of your Alibaba Cloud account (root account), which improves management efficiency and reduces the risk of information leaks. This topic describes how to create a RAM user and grant the RAM user permissions to manage Alibaba Cloud OpenSearch LLM-Based Conversational Search Edition, such as viewing the instance list and viewing instance details.

Prerequisites

At least one RAM user is created for your Alibaba Cloud account (root account). For more information, see Create a RAM user.

Procedure

  1. Log on to the RAM console by using an administrator account.

    RAM supports the following two types of policies:

    • System policies managed by Alibaba Cloud: These policies are created by Alibaba Cloud. You can use but cannot modify them. Version updates of these policies are maintained by Alibaba Cloud.

    • Custom policies managed by customers: You can create, update, and delete these policies. Version updates of these policies are maintained by you.

  2. (Optional) Create a custom policy.

    If the system policies provided by Alibaba Cloud do not meet your requirements, you can refer to Authorization rules of applications to create a custom policy that follows the principle of least privilege and implements fine-grained permission management. For more information, see Create a custom policy.

    Examples of common minimum permission combinations

    To log on to the OpenSearch LLM-Based Conversational Search Edition console by using a RAM account, the common minimum permission combination includes permissions on the application list and permissions on application details. The following examples are provided for reference.

    Example 1: Permissions on the instance list

    If a RAM account needs to view the instance list in the console after logon, you can configure the following policy.

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "opensearch:ListAppGroup",
          "Resource": "acs:opensearch:*:*:app-groups/*"
        }
      ]
    }

    Example 2: Permissions on instance details

    If a RAM account needs to view the application details of an instance after logon, you can configure the following policy to allow the RAM account to view the details of the instance named app_schema_demo:

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "opensearch:ListAppGroup",
          "Resource": "acs:opensearch:*:*:app-groups/*"
        },
        {
          "Effect": "Allow",
          "Action": ["opensearch:DescribeAppGroup",
                      "opensearch:ListApp"],
          "Resource": "acs:opensearch:*:*:app-groups/app_schema_demo"
        }
      ]
    }
  3. Grant permissions to the RAM user.

    Attach a system policy or a created custom policy to the RAM user so that the RAM user has the permissions to access or manage the related resources. For more information, see Manage RAM user permissions. After you configure or update permissions for a RAM user, the changes take effect after a delay of 5 minutes.

  4. After the permissions are granted, the RAM user can log on to the console to manage OpenSearch.

    For more information, see Log on to the Alibaba Cloud console as a RAM user.

References

  • You can view the permissions granted directly to a RAM user and the permissions that the RAM user inherits from user groups. For more information, see View RAM user permissions.

  • If a RAM user no longer requires specific permissions or leaves the organization, you can revoke the permissions. For more information, see Revoke permissions from a RAM user.

  • You can view the multi-factor authentication (MFA) methods supported for RAM users, as well as the usage notes and limits. For more information, see Multi-factor authentication (MFA).