Session metadata makes the user context data portable and visible across the session lifecycle and in logout events. Downstream systems can use session metadata information to conduct audits, perform analytics, and apply revocation pipelines, among other uses.Documentation Index
Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
Use this file to discover all available pages before exploring further.
Add organization information to session metadata
You can use Actions to store the organization’s identifiers in a session with the post-loginapi.session.setMetadata() method and query it with the event.session.metadata object.
Post-Login Action code:
- In subsequent Actions, you can query the data via the
event.session.metadataobject:
- If you use the Management API, you can query the data via the /api/v2/sessions/ endpoint:
Calls to the
/api/v2/sessions/{id} endpoint require a Management API access token with the update:session scope.- If you have an OIDC Back-Channel Logout session metadata configured application, the
logout_tokenincludes the session metadata: