Skip to main content

Organization Events

Admin Events​

Changes to organizations through the Organizations API produce these admin events:

PathMethodResource typeOperation
/auth/realms/:realm/orgsPOSTORGANIZATIONCREATE
/auth/realms/:realm/orgs/:orgIdPUTORGANIZATIONUPDATE
/auth/realms/:realm/orgs/:orgIdDELETEORGANIZATIONDELETE
/auth/realms/:realm/orgs/:orgId/members/:userIdPUTORGANIZATION_MEMBERSHIPCREATE
/auth/realms/:realm/orgs/:orgId/members/:userIdDELETEORGANIZATION_MEMBERSHIPDELETE
/auth/realms/:realm/orgs/:orgId/rolesPOSTORGANIZATION_ROLECREATE
/auth/realms/:realm/orgs/:orgId/rolesPUTORGANIZATION_ROLECREATE
/auth/realms/:realm/orgs/:orgId/rolesPATCHORGANIZATION_ROLEDELETE
/auth/realms/:realm/orgs/:orgId/roles/:roleNamePUTORGANIZATION_ROLEUPDATE
/auth/realms/:realm/orgs/:orgId/roles/:roleNameDELETEORGANIZATION_ROLEDELETE
/auth/realms/:realm/orgs/:orgId/roles/:roleName/users/:userIdPUTORGANIZATION_ROLE_MAPPINGCREATE
/auth/realms/:realm/orgs/:orgId/roles/:roleName/users/:userIdDELETEORGANIZATION_ROLE_MAPPINGDELETE
/auth/realms/:realm/users/:userId/orgs/:orgId/rolesPUTORGANIZATION_ROLE_MAPPINGCREATE
/auth/realms/:realm/users/:userId/orgs/:orgId/rolesPATCHORGANIZATION_ROLE_MAPPINGDELETE
/auth/realms/:realm/orgs/:orgId/invitationsPOSTINVITATIONCREATE
/auth/realms/:realm/orgs/:orgId/invitations/:invitationIdDELETEINVITATIONDELETE
/auth/realms/:realm/orgs/:orgId/domains/:domainName/verifyPOSTDOMAINUPDATE
/auth/realms/:realm/orgs/importPOSTORGANIZATION_IMPORTCREATE

The admin event's type combines the resource type and operation, for example admin.ORGANIZATION-CREATE. See Admin events.

User events​

Some organization actions also produce user (access) events.

Organization management​

PathMethodEvent type
/auth/realms/:realm/users/switch-organizationPUTUPDATE_PROFILE
/auth/realms/:realm/orgs/:orgId/members/:userIdDELETEUPDATE_PROFILE

Invitations​

Event type: CUSTOM_REQUIRED_ACTION

invitation-required-action-success

invitation-required-action-error

Post IdP login ("Add user to org" Authenticator)​

Event type: IDENTITY_PROVIDER_POST_LOGIN

add-to-organization-success

remove-organization-invitation-event

Event type: EXECUTE_ACTION_TOKEN

portal-link-success