UserAdmin

class pydelfini.delfini_core.models.user_admin.UserAdmin(has_password, disabled_on=Unset, group_roles=Unset, providers=Unset)[source]

Bases: object

User administrative settings

Parameters:
has_password

True if the user can sign in with a username and password

Type:

bool

disabled_on
Type:

Union[None, Unset, datetime.datetime]

group_roles

The user’s role in each of their groups, keyed by group id

Type:

Union[Unset, UserAdminGroupRoles]

providers

External sign-in providers linked to the user, such as google

Type:

Union[Unset, List[str]]

Attributes

has_password

disabled_on

group_roles

providers

classmethod from_dict(src_dict)[source]

Create an instance of UserAdmin from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]