RoleAsJSONWithPerms#

class RoleAsJSONWithPerms[source]#

The JSON representation of a role including the permissions the role has.

perms: GlobalPermMap#

The permissions this role has

own: bool#

Does the currently logged in user have this role.

count: int#

The number of users with this role.

id: int#

The id of the role

name: str#

The name of the role