When a new Oracle Cloud Infrastructure (OCI) tenancy will be created, the person named as the requestor will be used to create two accounts. These accounts serve as master accounts for the administration of OCI and a related Oracle Identity Cloud Service (IDCS) instance. But what is a Cloud Account for?
In this post, I'll explain the types of accounts you have in OCI and the best practises to handle emergencies and prevent discurption.
During the provisioning of an OCI tenancy two accounts will be created:
- OCI local admnistrator – A OCI IAM local user with permissions to administer the whole OCI tenancy.
- IDCS domain administrator – A IDCS user with permissions to administer the whole IDCS instance.
Interestingly, both accounts have the same user name (for example: email@example.com
) but are two different entities. In the OCI Console (OCI Console
> Identity & Security
) you will find both users:
- firstname.lastname@example.org – The OCI local administrator.
- email@example.com – The IDCS domain administrator.
The later is a shadow of the IDCS federated user in OCI and it has nearly the same permissions as the OCI local administrator.
The OCI local administrator has a special permission which is not visible in the OCI Identity & Security screens anywhere. She is also a Cloud Account administrator which acts as the master user for all Cloud Account specific activities (creation of additional Cloud Account users, assigning IDCS instance creation permissions, etc.).
When you get your tenancy do not delete or change any of these accounts.
Prepare for Emergencies
Having just one user as the administrator for the whole tenancy and IDCS domain is a single point of failure. This user
- may have no the technical skills
- may be too busy to fulfill an administrators duties
- may have an accident
- may leave the company
To prevent any of these situations do the following steps:
- Create a few OCI local accounts.
- Create a few IDCS domains administrators.
- Grant Cloud Account permissions to these special users.
When you create new accounts consider these recommendations:
- Each user must be a human.
- Don't use a mailing list or a shared email address.
- Don't share the account (and the password).
These accounts are sensitive administration accounts and must be clearly separated from each other.
OCI Local Account
Generally, I do not recommend to create OCI local accounts, if possible. All OCI Administrators should be federated through IDCS using the IDCS federation features. The built-in OCI federation features may work for your environment, but not always provide the same support as for the IDCS federated users.
To create OCI local accounts for tenancy administrator emergency accounts you should be the OCI local administrator. Never delegate this acivity to someone else.
- As the OCI Administrator log into OCI Console
- Open the menu on the upper left
- Select Identity & Security
- Under Identity select Users
- Click Create User
- In the Create User wizard
- Select IAM User
- Enter the Name, for example: firstname.lastname@example.org
- Enter the Description
- Enter the Email
- Enter the Confirm Email
- Click on Create
- The new user entry will be shown.
- Click on the Create/Reset Password button.
- In the modal window click on the Create/Reset Password button. – This will create a new one time password.
- Copy the new password by clicking on the Copy link and paste in your favorite notepad editor. – You cannot get this password again!
- Close the modal window
- Add the user to the Administrators group in the Groups section below the User Information section.
- Give the one time password to the new user personally. – Make sure no one else can get a copy of it!
- The new user will receive a confirmation link by email and needs the one time password for confirmation and updating the password.
You now have a new OCI local administrator account.
IDCS Administrator Account
Creating an IDCS Administrator
account is as import as the OCI local administrator
account. You should be default IDCS Administrator
and should not
delegate this to someone else.
- As the IDCS Administrator log into IDCS Console
- Open the menu on the upper left
- Select Users
- Click on Add
- In the Add User wizard
- Enter the First Name
- Enter the Last Name
- Enter the User Name / Email (for example, email@example.com)
- Click on Next
- Search for OCI_Administrators
- Select OCI_Administrators
- Click on Finish
- From the menu on the upper left expand Security
- Select Administrators
- Expand Identity Domain Administrator
- Click Add
- Search for the newly created user name (for example firstname.lastname@example.org)
- Select the user
- Click on OK
The newly created user has been created and registered as an Identity Domain Administrator. She will also receive a confirmation email and can provide a password for this IDCS account.
The newly created accounts are great for handling OCI and IDCS emergencies. But there is another permission that is required for these users: The Cloud Account permission.
As the master cloud account administrator you are able to grant this permission to these users, too. Here is how:
- As the OCI tenancy administrator log into the OCI Console
- Select the User icon on the upper right corner to open the menu
- Select User Service Console
- From the upper left menu expand the Account Management / Users submenu
- Find the identity (Primary) and click on it.
- In the User Management window select Users
- Search for your new user
- Select the new user
- In the user entry select the Roles tab.
- In the Cloud Account section click on Click here to add Cloud Account Admin Role and select Cloud Account Administrator from the popup window. This will add additional administrator roles to the PaaS services in the list below the Cloud Account section, too.
Adding additional users for emergencies will prepare you for unexpected situations and help your organization to continuously operate. Better do it now!