Skip to main content

Roles & permissions

Roles, direct permission grants, groups, and refused authorizations. Install the pack from Actions & Schemas → Add standard events in the app. Standard events explains the conventions every action here follows.

ActionDescription
role.createdA role was created.
role.updatedA role's name or description changed.
role.deletedA role was deleted.
role.permissions_changedA role's permissions changed. added/removed: comma-separated permission names.
permission.grantedA permission was granted directly to a user, group or agent.
permission.revokedA directly granted permission was revoked.
group.createdA group was created.
group.deletedA group was deleted.
group.member_addedA user or agent was added to a group.
group.member_removedA user or agent was removed from a group.
access.deniedAuthorization refused a request; name the resource as a target.

role.created​

A role was created.

FieldValue
Targetsrole
Required metadataNone
Optional metadatasource, reason, request_id
OCSFRole Management (3008), activity_id 1
{
"event": "role.created",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "role",
"id": "role_01JA2BILL",
"name": "Billing admin"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

role.updated​

A role's name or description changed.

FieldValue
Targetsrole
Required metadataNone
Optional metadatafields, source, reason, request_id
OCSFRole Management (3008), activity_id 2
{
"event": "role.updated",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "role",
"id": "role_01JA2BILL",
"name": "Billing admin"
}
],
"metadata": {
"fields": "name,email"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"fields": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

role.deleted​

A role was deleted.

FieldValue
Targetsrole
Required metadataNone
Optional metadatasource, reason, request_id
OCSFRole Management (3008), activity_id 3
{
"event": "role.deleted",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "role",
"id": "role_01JA2BILL",
"name": "Billing admin"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

role.permissions_changed​

A role's permissions changed. added/removed: comma-separated permission names.

FieldValue
Targetsrole
Required metadataNone
Optional metadataadded, removed, source, reason, request_id
OCSFRole Management (3008), activity_id 2
{
"event": "role.permissions_changed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "role",
"id": "role_01JA2BILL",
"name": "Billing admin"
}
],
"metadata": {
"added": "invoices.write",
"removed": "invoices.delete"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"added": {
"type": "string"
},
"removed": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

permission.granted​

A permission was granted directly to a user, group or agent.

FieldValue
Targetspermission, user, group, agent
Required metadatapermission
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 14
{
"event": "permission.granted",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "permission",
"id": "perm_invoices_write",
"name": "invoices.write"
},
{
"type": "user",
"id": "usr_01JA2JUBAL",
"name": "Jubal Harshaw"
}
],
"metadata": {
"permission": "invoices.write"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"permission": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"permission"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

permission.revoked​

A directly granted permission was revoked.

FieldValue
Targetspermission, user, group, agent
Required metadatapermission
Optional metadatasource, reason, request_id
OCSFUser Management (3007), activity_id 15
{
"event": "permission.revoked",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "permission",
"id": "perm_invoices_write",
"name": "invoices.write"
},
{
"type": "user",
"id": "usr_01JA2JUBAL",
"name": "Jubal Harshaw"
}
],
"metadata": {
"permission": "invoices.write"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"permission": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"required": [
"permission"
],
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

group.created​

A group was created.

FieldValue
Targetsgroup
Required metadataNone
Optional metadatasource, reason, request_id
OCSFGroup Management (3006), activity_id 6
{
"event": "group.created",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "group",
"id": "grp_01JA2FIN",
"name": "Finance"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

group.deleted​

A group was deleted.

FieldValue
Targetsgroup
Required metadataNone
Optional metadatasource, reason, request_id
OCSFGroup Management (3006), activity_id 5
{
"event": "group.deleted",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "group",
"id": "grp_01JA2FIN",
"name": "Finance"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

group.member_added​

A user or agent was added to a group.

FieldValue
Targetsgroup, user, agent
Required metadataNone
Optional metadatasource, reason, request_id
OCSFGroup Management (3006), activity_id 3
{
"event": "group.member_added",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "group",
"id": "grp_01JA2FIN",
"name": "Finance"
},
{
"type": "user",
"id": "usr_01JA2JUBAL",
"name": "Jubal Harshaw"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

group.member_removed​

A user or agent was removed from a group.

FieldValue
Targetsgroup, user, agent
Required metadataNone
Optional metadatasource, reason, request_id
OCSFGroup Management (3006), activity_id 4
{
"event": "group.member_removed",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "group",
"id": "grp_01JA2FIN",
"name": "Finance"
},
{
"type": "user",
"id": "usr_01JA2JUBAL",
"name": "Jubal Harshaw"
}
],
"metadata": {}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}

access.denied​

Authorization refused a request; name the resource as a target.

FieldValue
TargetsAny target type
Required metadataNone
Optional metadatapermission, source, reason, request_id
OCSFAPI Activity (6003), activity_id 99, status_id 2 (Failure)
{
"event": "access.denied",
"trail": "security",
"organization_id": "org_acme",
"created_at": "2026-10-06T14:03:11.482Z",
"actor": {
"type": "user",
"id": "usr_01JA2MIKE",
"name": "Valentine Michael Smith"
},
"targets": [
{
"type": "invoice",
"id": "inv_4471",
"name": "Invoice 4471"
}
],
"metadata": {
"permission": "invoices.write",
"reason": "missing_permission"
}
}
Schema (installed as v1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"permission": {
"type": "string"
},
"source": {
"type": "string"
},
"reason": {
"type": "string"
},
"request_id": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"actor": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"on_behalf_of_type": {
"type": "string"
},
"on_behalf_of_id": {
"type": "string"
}
},
"dependentRequired": {
"on_behalf_of_type": [
"on_behalf_of_id"
],
"on_behalf_of_id": [
"on_behalf_of_type"
]
},
"additionalProperties": {
"type": "string"
}
}
}
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
}