The event.user.groups
property only returns the groups defined by the IdP.
If you need to get groups defined from RBAC, you need to use the Management API in Actions. Check out our Using the Management API in Actions documentation for an example of using the Management API to get the user’s Roles.
If you continue having difficulties, could you share the Rule and Action script you have so far?
Thanks,
Rueben