User's Organization Roles Missing in Actions

Problem statement

A user has a role within the context of organizations, but it is not appearing in a post login action with event.authorization.roles or with context.authorization.roles in Rules.


If the login is occurring in the context of an Organization, then the Organization roles will be listed in event.authorization.roles in Actions or context.authorization.roles in Rules.

Essentially, if the login is through Organizations, the list of roles will be the same as the ones found from the /api/v2/organizations/{id}/members/{user_id}/roles endpoint.

If it is not an Organizations login, it will be the same list of roles found from the /api/v2/users/{id}/roles endpoint.

Related References