QuestionQ55

VerifiedIdentity and Access Management

You have three compartments: ProjectA, ProjectB, and ProjectC. An admin group has been configured for each compartment: A-Admins, B-Admins, and C-Admins.

Each admin group has full access to its respective compartment, as illustrated below.

Your organization has configured a tag namespace, EmployeeGroup.Role, and every admin group is tagged with the value 'Admin'.

Question Image

You want to create a Test compartment for members of the three projects to share. You must also grant admin access to each of your three existing admin groups.

Which policy would you write to accomplish this task?

Explanation

OCI evaluates request.principal.group.tag.EmployeeGroup.Role='Admin' against the tags on the groups to which a requesting user belongs. The documented policy pattern for granting access to users in any group carrying that tag is allow any-user to manage all-resources in compartment Test where request.principal.group.tag.EmployeeGroup.Role='Admin'. It grants the required access to A-Admins, B-Admins, and C-Admins and will also apply to future groups carrying the same tag.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!