bayesline.api.expand_roles#
- bayesline.api.expand_roles(held_roles: Sequence[RoleType]) frozenset[RoleType]#
Expand assigned roles into every role they fulfil via the hierarchy.
Parameters#
- held_rolesSequence[RoleType]
The roles directly assigned to a user.
Returns#
- frozenset[RoleType]
The held roles plus every role they imply through the hierarchy.