Stream Auth0 Tenant-Level RBAC Role Events
Last Updated:
Overview
Auth0 does not currently support native Event Streams for tenant-level Role-Based Access Control (RBAC) events, such as role creation, deletion, or user-role assignments. To capture these events in near-real time, configure a Log Stream with a Custom Webhook sink filtered for successful Management API operations. This configuration captures the necessary API calls while native RBAC event streaming support is in development.
Applies To
- Auth0
- Event Streams
- Log Streams
- Role-Based Access Control (RBAC)
Solution
How are tenant-level RBAC events captured?
Auth0 Event Streams currently only cover organization-scoped role assignments, such as organization.member.role.assigned and organization.member.role.deleted. Native tenant-level RBAC event streaming support, including role.created, role.updated, role.deleted, user.role.assigned, and user.role.deleted, is not currently available.
Configure a Log Stream Workaround
Configure a Log Stream with a Custom Webhook sink filtered to capture successful Management API operations by following these steps:
- Navigate to the Auth0 Dashboard.
- Select Monitoring and choose Streams.
- Create a new Log Stream and select Custom Webhook as the sink.
- Configure the webhook payload and endpoint details.
- Apply a filter to capture only Management API - Success events.
This configuration captures the underlying Application Programming Interface (API) calls for RBAC changes, such as POST /api/v2/roles, DELETE /api/v2/roles/{id}, and POST /api/v2/roles/{id}/users.