All Products
Document Center

OpenSearch:Create custom policies

Last Updated:Aug 26, 2022

If the system policies provided by OpenSearch do not meet your requirements, you can create custom policies. Custom policies enable finer-grained permission management than system policies. This topic describes how to create a custom policy. For more information about custom policies, see Access authorization rules and Authorization rules of applications.


  1. Log on to the RAM console by using your Alibaba Cloud account. 1

2.In the left-side navigation pane, choose Permissions > Policies. On the Policies page, click Create Policy. 2

3. On the Create Custom Policy page, set the Policy Name and Note parameters.

4. Set the Configuration Mode parameter to Script.

5. In the Policy Document section, select an existing system policy from the drop-down list and modify the code as required. We recommend that you configure a custom policy by referring to the Access authorization rules and Authorization rules of applications topics. 5

6. Click OK. The custom policy is created.


For more information about how to create and authorize a RAM user, see Create and authorize RAM users.