Im trying to replicate what an existing rule does, but in an action.
I have a rule that adds a users Identity Provider Attribute called roles to the idToken.
I can see the example docs allows you to add roles from event.authorization.roles, but I am trying to add from the user attributes. The following adds the claim, but the value is null.
I can see the user profile doesnt have roles as a property hence the error. Is there a correct way to do this or are the attributes elsewhere.