Resolve principals (groups and pseudo roles) for ACL.
websauna.system.auth.principals.
resolve_principals
Get applied groups and other for the user.
This is a callback for pyramid.authentication.SessionAuthenticationPolicy.
pyramid.authentication.SessionAuthenticationPolicy
List all groups as group:admin style strings
group:admin
List super user as superuser:superuser style string
superuser:superuser
Optional[List[str]]
Optional
List
str
None if the user is not logged in, otherwise list of principals assigned to the user site wide.