When it is written
The identity domain records the event ID admin.approle.add.member.success when an application role is granted. Oracle's App Role Assignments report reads it from OCI Audit with the role in adminResourceName, the application the role belongs to in adminAppRoleAppName, the beneficiary in adminRefResourceName and its type (user or group) in adminRefResourceType, and the approver in actorDisplayName. Oracle documents the record for users and groups only: its Application Role Privileges report covers grants to and revokes from users and groups. The Grants API also accepts an application or a dynamic resource group as the grantee, but Oracle documents no record of such a grant, so whether this event is written then, and what the beneficiary fields hold, has to be checked on a record of your own.
The detection rule reads this record for the domain's administrator roles (Identity Domain Administrator, Security Administrator, Application Administrator, User Administrator, User Manager, Help Desk Administrator). Oracle's AppRole Permissions reference lists each of them as an AppRole of the identity domain, and its API example shows User Administrator and Identity Domain Administrator among the AppRoles granted to an application. Oracle shows no Audit record of an administrator role assignment, so confirm the role names your domain records with one test assignment. Identity Domain Administrator is the domain's superuser; Security Administrator manages password policies, MFA and identity providers; User Manager and Help Desk Administrator can reset passwords and generate bypass codes. Oracle lists assigning users to administrator roles among the tasks of the identity domain administrator, and in a domain other than the Default domain the Identity Domain Administrator role gives full administration of that domain only, not of the tenancy. An application role can also be added to a confidential application, which then calls the REST APIs of that role. Removal is admin.approle.remove.member.success.
How to turn it on
OCI Audit records admin.approle.add.member.success calls to OCI Audit without any setup. Vendor documentation
Audit needs no setup: it records the calls to all supported OCI public API endpoints as log events, whether they come from the Console, the CLI, an SDK or another OCI service. Object Storage is the documented exception: bucket operations are recorded, object operations are not.
- Retention: Oracle keeps Audit events for 365 days. The setting applies to the whole tenancy (every region and compartment) and cannot be changed, so a longer history needs an export.
- Delay: new events usually appear within 15 minutes of the API call; Oracle says processing time can vary and events are logged when they are processed.
- Reading: viewing or searching events needs a policy such as
Allow group Auditors to read audit-events in tenancy. Events are organized by compartment: IAM users, groups and some policies live in the tenancy itself (the root compartment), whose OCID is the tenancy OCID. - Collecting: the events are also the
/_Auditlog group of every compartment in Logging. Export them with Connector Hub (source Logging, the_Auditlog group) to Streaming, which the SIEM connectors read, or to Object Storage, Functions or Log Analytics. Delivery is at least once; a connector that keeps failing for longer than the Logging source's 24-hour retention loses data. - Envelope: records read through Logging use the Logging format (a CloudEvents envelope): the event type is in
typeinstead ofeventType, with the samedataobject. - Identity domains: the identity domains AuditEvents API stopped returning new data after December 15, 2024; domain events (sign-ins, user, group and application changes) are read from OCI Audit, with the domain's audit attributes under
data.additionalDetails(eventId,actorName,adminResourceName...).
oci audit config get --compartment-id <tenancy-ocid>oci sch service-connector list --compartment-id <compartment-ocid> --alloci audit event list --compartment-id <compartment-ocid> --start-time <start-time> --end-time <end-time> --alloci logging-search search-logs --time-start <start-time> --time-end <end-time> --search-query "search \"<compartment-ocid>/_Audit\" | where type = 'admin.approle.add.member.success' or data.eventName = 'admin.approle.add.member.success' or data.additionalDetails.eventId = 'admin.approle.add.member.success'"Identity domain events are in the Audit log of the compartment that holds the identity domain, which is the root compartment (the tenancy) for the Default domain. Search that compartment's _Audit log group.
Fields
The operation’s own fields first, then the fields every OCI Audit record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
data.Read by 1 rule | The identity domain's event ID, admin.approle.add.member.success for this operation. |
data.Read by 1 rule | The application role that was granted (Oracle's report column "Application Role Name"). |
data. | The application the role belongs to. |
data. | The user or group that received the role (the beneficiary). |
data. | Whether the beneficiary is a user or a group. |
data. | Display name of the administrator who granted it (the approver in Oracle's report). |
data. | Login name of the actor that made the grant (the AuditEvent attribute actorName, which Oracle's other report queries read from OCI Audit). Oracle's App Role Assignments query reads only the display name, so the field was not seen in an Oracle query for this event. |
data. | Display name of the identity domain the event comes from. |
Fields every OCI Audit record has (22)
| Field | What it holds |
|---|---|
eventType | The type of event, com.oraclecloud.<service>.<operation>: the operation of control plane pages. Oracle's event list writes identityControlPlane and its reference events identitycontrolplane, so compare without case. In the Logging envelope this is type. |
source | What produced the event; Oracle's reference records carry the service here (identityControlPlane, cloudGuard). |
eventID | A unique ID of the record (a UUID, not an OCID). Oracle's examples spell it eventID or eventId. |
eventTime | When the event happened, in RFC 3339 format. |
data. | Name of the API operation that produced the event (CreateUser). |
data. | OCID of the compartment of the resource. IAM users, groups and some policies live in the tenancy itself (the root compartment), whose OCID is the tenancy OCID. |
data. | Name of that compartment. |
data. | Name of the resource the event is about. What it holds depends on the operation: the group for a membership change, the user for a credential. |
data. | OCID (or other ID) of that resource. |
data. | Name of the user or service that made the request. |
data. | OCID of that principal. |
data. | The type of authentication used (natv in Oracle's reference record). |
data. | The address the request came from. |
data. | The user agent of the client, as the client reports it. |
data. | Identifies the Console session the request belongs to, when there is one. |
data. | The credential ID of the user that signed the request. |
data. | The HTTP method of the request (GET, POST, PUT, DELETE...). |
data. | The status code of the response, as a string ("200"). |
data. | A short description of what happened, when the service gives one. |
data. | State of the fields the operation may have changed, before it. |
data. | State of those fields after the operation; compare it with previous. |
data. | Attributes the emitting service adds. IAM control plane records add the target user and group OCIDs (userId, groupId) and, in Oracle's reference events, the acting user and an identity domain (actorName, domainName); identity domain records carry the domain's audit attributes here. |
Values to know
data.additionalDetails.adminResourceName
| Value | Meaning | Signal |
|---|---|---|
Identity Domain Administrator | Full control of the identity domainThe detection rule reports it. Confirm that a request stands behind the grant; otherwise remove the role and review what the beneficiary did since. | Attack signal |
Security Administrator, User Administrator, User Manager, Help Desk Administrator or Application Administrator | An administrator role over security settings, users, passwords or applicationsAlso reported by the rule. User Manager and Help Desk Administrator can reset other users' passwords and generate bypass codes. | Attack signal |
data.additionalDetails.adminRefResourceType
| Value | Meaning | Signal |
|---|---|---|
User | The role went to one user | Worth knowing |
Group | The role went to every member of a groupCheck how many members the group has and who can change its membership. | Worth knowing |
Volume and noise
Low for the administrator roles: they are assigned to a handful of people. Assignments of the domain's own roles to a user outside the identity team or to a group with many members are the records to read first. Oracle documents no record for a role granted to an application or a dynamic resource group, so do not rely on this event for those grants until you have seen one in your own log.
Keeping it manageable
- Alert on the administrator roles in
adminResourceName, as the detection rule does, and read the beneficiary inadminRefResourceName. - Keep the expected holders of each administrator role and compare; a role granted to a group gives it to every member.
- Look for
admin.approle.remove.member.successof the same role and beneficiary a few hours later; a short-lived grant is worth a look.
Sample event
A OCI Audit record in the vendor’s format, with made-up values.
{
"eventType": "<not documented for identity domain events>",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "<not documented>",
"eventID": "3f2b1c0d-0000-4000-8000-00000000a1b2",
"eventTime": "2026-11-18T09:30:12.345Z",
"contentType": "application/json",
"data": {
"eventGroupingId": null,
"eventName": "<not documented>",
"compartmentId": "ocid1.tenancy.oc1..aaaaaaaaexampletenancy",
"compartmentName": "corp",
"resourceName": "",
"resourceId": "",
"availabilityDomain": null,
"freeformTags": null,
"definedTags": null,
"identity": {
"principalName": "ops-admin@corp.example.com",
"principalId": "ocid1.user.oc1..aaaaaaaaexampleopsadmin",
"authType": "natv",
"callerName": null,
"callerId": null,
"tenantId": "ocid1.tenancy.oc1..aaaaaaaaexampletenancy",
"ipAddress": "203.0.113.24",
"credentials": null,
"userAgent": "Oracle-PythonCLI/3.50.0",
"consoleSessionId": null
},
"request": {
"id": "6f1c2d3e4a5b4c6d8e9f0a1b2c3d4e5f",
"path": "",
"action": "POST",
"parameters": {},
"headers": {}
},
"response": {
"status": "200",
"responseTime": "2026-11-18T09:30:12.512Z",
"headers": {},
"payload": {},
"message": null
},
"stateChange": {
"previous": null,
"current": null
},
"additionalDetails": {
"adminResourceName": "Identity Domain Administrator",
"adminAppRoleAppName": "IDCS Application",
"adminRefResourceName": "j.doe@corp.example.com",
"adminRefResourceType": "User",
"actorName": "ops-admin@corp.example.com",
"actorDisplayName": "Ops Admin",
"domainDisplayName": "Default",
"eventId": "admin.approle.add.member.success"
}
}
}Attacks this event reveals
Detection rules that read this event:
Detection logic (hypotheses that join this event with others) for:
References
- Generate IAM reports from OCI Audit, App Role Assignments report (Oracle)
- Understanding administrator roles (Oracle)
- Get an Audit Event, identity domains REST API (AuditEvent attributes) (Oracle)
- Adding a confidential application (Oracle)
- Application Role Privileges Report (Oracle)
- Add a Grantee to an AppRole, identity domains REST API (grantee types) (Oracle)
- AppRole Permissions (Oracle)
- Working with Apps, Grant AppRoles to an App (Oracle)
- Overview of IAM, the Administrators group, policy and administrator roles (Oracle)