Skip to content

User

Inherits: dict

Authenticated user profile used by Flet authorization flows.

The instance is a mutable mapping with provider-specific user fields and normalized attributes such as id and groups.

Parameters:

  • kwargs (dict[str, Any]) –

    Provider-specific user fields to store in the mapping.

  • id (str) –

    Stable user identifier.

Properties

  • groups(list[Group]) –

    Groups loaded for this user when group retrieval is enabled.

  • id(str) –

    Provider user identifier represented as a string.

Properties#

groups instance-attribute #

groups: list[Group] = []

Groups loaded for this user when group retrieval is enabled.

id instance-attribute #

id: str = id

Provider user identifier represented as a string.