gravitino.api.authorization.user.User¶
- class gravitino.api.authorization.user.User¶
Bases:
AuditableThe interface of a user. The user is a basic entity in the authorization system.
- __init__()¶
Methods
- abstract name() → str¶
The name of the user.
- Returns:
str: The name of the user.
- abstract roles() → list[str]¶
The roles of the user. A user can have multiple roles. Every role binds several privileges.
- Returns:
list[str]: The role names of the user.