webknossos.administration.user
Represents a user of a webknossos instance.
You can get users via get_current_user
and get_all_managed_users
.
#  
User(
user_id: str,
email: str,
organization_id: str,
first_name: str,
last_name: str,
created: int,
last_activity: int,
teams: tuple[webknossos.administration.user.Team, ...],
experiences: Dict[str, int],
is_active: bool,
is_admin: bool,
is_dataset_manager: bool
)
Method generated by attrs for class User.
Get the logged times of this user.
Returns a list of LoggedTime
objects where one represents one month.
Returns the user specified by the passed id if your token authorizes you to see them.
Returns the current user from the authentication context.
Returns all users of whom the current user is admin or team-manager.
Method generated by attrs for class Team.
Returns the Team specified by the passed name if your token authorizes you to see it.
Method generated by attrs for class LoggedTime.