Procedure
In this tutorial, you will learn how to use Organizations to centrally manage accounts, as illustrated in the flowchart in Flowchart.
This section includes the following content:
- Creating an Organization
- Adding an OU
- Inviting an Account to Join Your Organization
- Attaching an SCP to an OU
- Testing SCP Effects
Creating an Organization
- Log in to Huawei Cloud using the management account Company A.
- Click and choose Management & Governance > Organizations.
- Click Enable Organizations.
Figure 1 Enabling Organizations
After Organizations is enabled, your organization as well as a root OU is automatically created, and your login account Company A is designated as the management account.
Adding an OU
You can use OUs to group accounts by a specific dimension, for example, by service scope, account owner, or application environment, to administer as a single unit. This greatly simplifies account management.
In this example, the company uses Organizations to organize the OUs and accounts in a hierarchical, tree-like structure. At the top of the tree is the root OU. The R&D dept. and finance dept. are child OUs reaching down like branches. There are development OU and O&M OU nested under the R&D dept. At the ends of the branches are the accounts, the leaves of the tree: Company A is the management account, and Account y, Account z, and Account x are member accounts. The organizational structure is shown in Figure 2.
To add an OU:
- Log in to Huawei Cloud using the management account Company A and navigate to the Organizations console.
- Access the Organization page, select the parent OU (root OU in this example), and choose Add > Add Organizational Unit.
Figure 3 Adding an OU
- Enter the OU name (Research and Development Dept in this example) and click OK in the displayed dialog box. Use the same method to create the Finance Dept OU.
Figure 4 Adding an OU
- Select the Research and Development Dept OU and add the Development Team OU and Operations and Maintenance Team OU in the same manner. The following figure shows the organizational structure.
Figure 5 Organizational structure
Inviting an Account to Join Your Organization
After you create an organization and set up the organizational structure, you can invite other accounts to join your organization.
The accounts you invite to join your organization must have completed real-name authentication. For details, see Real-Name Authentication.
The original accounting relationship (master-member association) of invited accounts will remain unchanged. If you want to change the relationship, refer to the documentation of Enterprise Center.
- Log in to Huawei Cloud using the management account Company A and navigate to the Organizations console.
- On the Organization page, choose Add > Add Account.
Figure 6 Adding an account
- In the displayed dialog box, select Invite existing and enter the name or ID of the account you want to invite. In this example, enter the ID of Development Team account Account y. For details about how to obtain an account name oraccount ID, see Obtaining Account ID and Name. Click OK to send an invitation to Account y.
Figure 7 Inviting an account
- Log in as Account y, access the Organizations console and click Accept to accept the invitation.
Figure 8 Accepting an invitation
- Log in as the management account Company A and navigate to the Organizations console. Then, access the Organization page and select the invited account.
- Choose Manage > Move Account.
Figure 9 Moving an account
- Select the OU (Development Team in this example) you want to hold the invited account. Click OK.
- Use the same method to invite Account x of the finance department and Account z of the O&M team to join the organization.
Attaching an SCP to an OU
You can attach SCPs to OUs to centrally manage permissions for all accounts in your organization. For example, you can attach an SCP to the R&D Dept. OU to allow only the accounts in this OU to modify and delete resource compliance rules. For services available for using SCPs, see Cloud Services for Using SCPs.
- Use a system-defined policy or create a custom policy.
Choose from SCP system-defined policies or create a custom policy (in this example) by referring to SCP Syntax.
The policy content is as follows:
{ "Version": "5.0", "Statement": [ { "Effect": "Deny", "Action": [ "rms:policyAssignments:update", "rms:policyAssignments:delete" ], "Resource": [ "*" ] } ] }
- Log in to Huawei Cloud using the management account Company A and navigate to the Organizations console.
- Select the Finance Dept. OU in the organizational structure. In this example, the finance department will be prohibited from modifying or deleting compliance rules.
- Click Policies on the Organizational Unit Details page.
- Click in front of Service Control Policies and click Attach.
Figure 10 Attaching an SCP
- Select the policy created in 1 and click Attach in the displayed dialog box. This policy is displayed in the list of policies attached to the finance department.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot