8.3 Configure Custom Claims for Group Information in OCI IAM
In OCI IAM, you must create a custom claim rule to populate a user's group
memberships into a group claim in an access token. The Oracle AI
Database reads this claim to activate the corresponding data roles.
The OCI Console does not provide a user interface for managing custom claims on tokens. You can create and manage custom claims only through the REST API. See Managing Custom Claims in the OCI IAM documentation.
To complete this task, you need the following:
- A user account with the Identity Domain Administrator role in the target identity domain.
- A command-line environment with
curlinstalled, such as OCI Cloud Shell, a local terminal, or Windows Subsystem for Linux (WSL).
A custom claim rule is now active on the identity domain. From this
point forward, every access token issued by this domain includes a group claim
containing the display names of the authenticated user’s group memberships.