More Info:
A service administrators group should be defined with active members. Without dedicated service admin roles, access management lacks proper segregation of duties.Risk Level
MediumAddress
Compliance, SecurityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- Essential 8
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate “OCI IAM Service Administrator Group Should Be Defined” using the OCI Console, you essentially need to:
- Create (or verify) a group for IAM Service Administrators
- Attach the correct policies to that group
- (Optionally) Assign users to the group
1. Identify the Relevant Compartment / Domain
- Sign in to the OCI Console.
- In the top-left, open the Navigation menu.
- Go to Identity & Security →
- If you use OCI IAM Identity Domains: choose Identity Domains → select your domain.
- If you use the classic IAM model: choose Identity (or Identity & Security → Users, Groups & Policies depending on your tenancy view).
2. Create an “IAM Service Administrators” Group
For IAM Identity Domains- In your identity domain, go to Groups.
- Click Create group.
- Name it something like:
IAM-Service-Admins(or the name required by your policy/standard). - Add a description, e.g. “Group for IAM Service Administrators with permissions to manage IAM resources.”
- Click Create.
- Under Identity & Security → Identity → Groups.
- Click Create Group.
- Enter:
- Name:
IAM-Service-Admins - Description: “Group for IAM Service Administrators with permissions to manage IAM resources.”
- Name:
- Click Create.
3. Attach Policies Granting IAM Service Admin Rights
You need tenancy-level (or appropriate compartment-level) policies allowing management of IAM resources. Typically this is at the tenancy level for central IAM administration.- Go to Identity & Security → Identity → Policies.
- In the Compartment selector, choose the tenancy (root) compartment (unless your org uses a different pattern).
- Click Create Policy.
- Name:
iam-service-admin-policy - Description:
Policy granting IAM service admin rights to IAM-Service-Admins group - Compartment: tenancy/root
- Statements (start with these and tighten as needed):
- Click Create.
4. Add Users to the IAM Service Admin Group
Identity Domains- Within the identity domain, open Groups.
- Click the
IAM-Service-Adminsgroup. - Go to Members → Add members.
- Select the appropriate users.
- Click Add / Save.
- Go to Identity → Users.
- For each user who should be an IAM Service Administrator:
- Click the user name.
- Go to Groups tab.
- Click Add User to Group.
- Select
IAM-Service-Admins. - Click Add.
5. Confirm the Misconfiguration Clears in Monitoring
- Wait for your OCI Security Zones / Cloud Guard / IAM Monitoring (depending on what you use) to re-evaluate.
- In the service that raised “OCI IAM Service Administrator Group Should Be Defined,” check that:
- A group exists with the intended name/role, and
- Policies granting IAM admin permissions are attached.
Using CLI
Using CLI
Below are concise, step‑by‑step OCI CLI instructions to ensure an IAM Service Administrator group exists and is properly configured for monitoring.Assumptions:
(If you already had the group from step 2, set
If empty, create:If the policy exists but needs updating, edit the JSON statements and run:
Add a user to the group:Repeat for each IAM administrator.
These commands and configuration will satisfy a control such as “OCI IAM Service Administrator Group Should Be Defined” for IAM monitoring.
- You have OCI CLI configured with appropriate tenancy-level permissions.
- You know your tenancy OCID:
ocid1.tenancy.oc1... - You want a group named
IAM-Service-Admins(change as needed).
1. Set common variables (optional, for convenience)
2. Check if the IAM Service Administrator group already exists
- If this returns an object, the group exists—note its
idand skip to step 4. - If it returns
[], create it.
3. Create the IAM Service Administrator group (if missing)
- Capture the group OCID from the output:
GROUP_OCID to that ID instead.)4. Create / ensure an IAM policy for Service Administrators
Example: full IAM admin at tenancy level (adjust to your policy standard / CIS profile).5. Add appropriate users to the IAM Service Administrator group
List users to identify the ones to add:6. Validate for monitoring / compliance
Re-list the group and its memberships (for evidence/monitoring):Using Python
Using Python
Below is how you can automatically check and remediate the “OCI IAM Service Administrator Group Should Be Defined” issue using Python + OCI SDK.
(Adjust the policy statement to your org’s standard if needed.)
1. What needs to exist
Typically the check means:- There should be an IAM Group for service admins (e.g.,
Service-Admins). - There should be an IAM Policy attached at the tenancy level that grants the group appropriate permissions, for example:
2. Prerequisites
- Install OCI Python SDK:
- Configure OCI CLI/SDK credentials on the machine running the script:
~/.oci/configwith a profile, e.g.[DEFAULT], including:tenancy=ocid1.tenancy.oc1...user=ocid1.user.oc1...fingerprint=...key_file=/path/to/private_key.pemregion=...
- The principal running the script needs IAM permissions to:
manage groups in tenancymanage policies in tenancy
3. Python script: detect & remediate
This script will:- Connect using the SDK.
- Check if the Service-Admins group exists; create it if missing.
- Check if a policy granting appropriate privileges exists; create it if missing.
4. How to use for monitoring
- Run this script periodically (e.g., via cron, OCI Functions, or a CI pipeline).
- It acts as both monitoring (detecting missing group/policy) and auto-remediation (creating them when absent).
- If you only want monitoring, remove the
create_*calls and just alert/log when group or policy is missing.
Using Terraform
Using Terraform
name of oci_identity_group.service_admins later will force replacement of the group (and thus memberships), which can briefly impact access.Verify with terraform plan showing creation of oci_identity_group.service_admins and at least one oci_identity_user_group_membership.service_admins_member.
