- 1▶
Enter to user settings
- 2▶
Click IAM.
- 3▶
Open “Policy Management” in the IAM sidebar.
- 4▶
Click “Create Custom Policy”.
- 5▶
Enter the policy name, for example mofis-global.
- 6▶
Set the policy level to “Global Level”.
- 7▶
Switch to the Mofis app to get the required JSON policy.
- 8▶
Choose “UCloud” to see its required permissions.
- 9▶
Open the “JSON policies” tab.
- 10▶
Click “Copy” to copy the global policy JSON.
- 11▶
Switch back to the UCloud console in Chrome.
- 12▶
Open the “Script Editor” tab.
- 13▶
Paste the JSON into the editor — the policy script fills in
- 14▶
Click “Confirm” to review the policy.
- 15▶
Click “Create Custom Policy” again for the project-level policy.
- 16▶
Enter the name, for example mofis-project. Keep “Project Level”.
- 17▶
Open "Script Editor" — a JSON policy template appears
- 18▶
Switch to Mofis to copy the project-level policy.
- 19▶
Click “Copy” on the project policy JSON.
- 20▶
Return to the UCloud console.
- 21▶
Paste the copied JSON into the editor.
- 22▶
Open “User Group Management”.
- 23▶
Click “Create User Group”.
- 24▶
Enter the group name, for example mofis-group.
- 25▶
Click “Add Policy” for the new group.
- 26▶
Search for “mofis” to find both policies.
- 27▶
Select both mofis policies and move them to the right.
- 28▶
Choose the “Default” project.
- 29▶
Open “User Management”.
- 30▶
Click “Invite Sub Account”.
- 31▶
Enter a user name, for example mofis-reader.
- 32▶
Clear “Console login” and keep “API access” checked.
- 33▶
Click “Confirm” to create the sub-account.
- 34▶
Copy the AccessKey ID and Secret now. The secret is shown only once.
- 35▶
Click “Add to Group” for the new user.
- 36▶
Select the available user group
- 37▶
Click “Confirm” to finish.