I am using Authorization Extension to manage groups & roles.
As per the documentation, https://auth0.com/docs/customize/extensions/authorization-extension/configure-authorization-extension after publishing the rule. The group information is supposed to get added to the user context which can then be added to the token.
But I am not able to get the group information in the user context in the Actions.
The groups come as empty.
exports.onExecutePostLogin = async (event, api) => {
const assignedGroups = (event.user || {}).groups;api.idToken.setCustomClaim(
${namespace}/groups
, assignedGroups);
api.accessToken.setCustomClaim(${namespace}/groups
, assignedGroups);};
Am I missing something?
I am in a new account that does not have rules or auth0 pipelines. Only available option is Flows with actions.
Will this cause a problem in using ‘Publish Rule’ from auth0 extension?
Edit: Additional information