After you create a Resource Access Management (RAM) user, you must authorize the RAM user to manage services in Alibaba Cloud Model Studio in the RAM console and the Model Studio console.
Create a RAM user
For more information about how to create a RAM user, see Create a RAM user.
Authorize the RAM user in the RAM console
Log on to the RAM console.
In the left-side navigation pane, choose
. On the Users page, find the RAM user that you want to authorize.Click Add Permissions in the Actions column of the desired RAM user.
On the Grant Permission pane that appears, search for and select the RAM permissions such as AliyunBailianFullAccess, AliyunBailianControlFullAccess, AliyunBailianDataFullAccess, and others.
Click Grant permissions.
Authorize the RAM user in the Model Studio console
Log on to the Model Studio console with your Alibaba Cloud account.
In the left-side navigation pane, choose .
On the User Management page, click Add user.
Select the desired RAM user, specify a username, and then click Next.
Select Admin from the Role drop-down list and click Complete.
Authorize a sub-workspace to use models
Models can be directly used in the default workspace. However, authorization is required to use models in sub-workspaces.
For more information, see Authorize a sub-workspace to use models.
Custom permission policy for knowledge indexes
You can use a custom permission policy to grant RAM users the minimum set of permissions on knowledge indexes.
Procedure
Log on to the RAM console with an administrator account.
In the left-side navigation pane, choose .
Click Create Policy. On the page that appears, configure the following parameters.
Service: Select Alibaba Cloud Model Studio / SFM.
Action: Select sfm:GetIndexJobStatus, sfm:CreateIndex and, sfm:SubmitIndexJob. You can search by the names.
sfm:GetIndexJobStatus: Queries the status of an indexing job.
sfm:CreateIndex: Creates an indexing job.
sfm:SubmitIndexJob: Submits an indexing job.
Click OK. On the dialog box that appears, specify a name and description for the policy. Then, click OK.
To authorize a RAM user, click Grant Permission or choose
in the left-side navigation pane.In the Grant Permission panel, select the RAM user in the Principal section and then select the custom policy that you created in the Policy section. Click Grant permissions.