webknossos.administration.user
¶
LoggedTime
¶
Team
¶
User
¶
Represents a user of a webknossos instance.
You can get users via get_current_user
and get_all_managed_users
.
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