Skip to main content
1 vote

How to get all roles that a user is a member of (including inherited roles)?

Strongly based on Erwin Brandstetter's answer, but also: Removing duplicates (the same role can appear in multiple places in the "tree" of parent roles) Does not use the magic ::regrole to ...
Michal Charemza's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible