I have an Okta Workforce Identity Cloud Enterprise Connection. I have turned on Sync Users and Groups Using SCIM. Everything is working great, except for Enterprise Groups > Roles assignment.
My Okta Enterprise Groups appear correctly under the Enterprise Groups page. I also see all the members in my groups, so that works perfectly. I then assigned a Role to an enterprise group. However, my Post Login Action Trigger is unable to access those roles. It feels like this might be a bug within Auth0 platform.
I am fetching the roles like this:
const roles = [...(event.authorization?.roles ?? [])];
When I output the roles in the debug panel like this:
console.log("Auth0 Roles:", roles);
The role from the Enterprise Group is missing. Am I wrong to expect the Role assigned to the Enterprise Group to appear here? How can I get access to those assigned roles?