gravitino.api.authorization.user.User

class gravitino.api.authorization.user.User

Bases: Auditable

The interface of a user. The user is a basic entity in the authorization system.

__init__()

Methods

__init__()

audit_info()

name()

The name of the user.

roles()

The roles of the user.

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.