webknossos.administration.user
¶
Classes:
-
LoggedTime
– -
Team
– -
User
–Represents a user of a webknossos instance.
LoggedTime
¶
Team
¶
Methods:
-
add
–Adds a new team with the specified name.
-
get_by_name
–Returns the Team specified by the passed name if your token authorizes you to see it.
-
get_list
–Returns all teams of the current user.
Attributes:
-
id
(str
) – -
name
(str
) – -
organization_id
(str
) –
User
¶
Represents a user of a webknossos instance.
You can get users via get_current_user
and get_all_managed_users
.
Methods:
-
assign_team_roles
–Assigns the specified roles to the user for the specified team.
-
get_all_managed_users
–Returns all users of whom the current user is admin or team-manager.
-
get_by_id
–Returns the user specified by the passed id if your token authorizes you to see them.
-
get_current_user
–Returns the current user from the authentication context.
-
get_logged_times
–Get the logged times of this user.
Attributes:
-
created
(int
) – -
email
(str
) – -
experiences
(Dict[str, int]
) – -
first_name
(str
) – -
is_active
(bool
) – -
is_admin
(bool
) – -
is_dataset_manager
(bool
) – -
last_activity
(int
) – -
last_name
(str
) – -
organization_id
(str
) – -
teams
(Tuple[Team, ...]
) – -
user_id
(str
) –
assign_team_roles
¶
assign_team_roles(team_name: str, is_team_manager: bool) -> None
Assigns the specified roles to the user for the specified team.
get_all_managed_users
classmethod
¶
get_all_managed_users() -> List[User]
Returns all users of whom the current user is admin or team-manager.
get_by_id
classmethod
¶
get_by_id(id: str) -> User
Returns the user specified by the passed id if your token authorizes you to see them.
get_current_user
classmethod
¶
get_current_user() -> User
Returns the current user from the authentication context.
get_logged_times
¶
get_logged_times() -> List[LoggedTime]
Get the logged times of this user.
Returns a list of LoggedTime
objects where one represents one month.
- Get Help
- Community Forums
- Email Support