Skip to content

webknossos.administration.team

Team

id instance-attribute

id: str

name instance-attribute

name: str

organization_id instance-attribute

organization_id: str

add classmethod

add(team_name: str) -> Team

Adds a new team with the specified name.

add_user

add_user(
    user: User, *, is_team_manager: bool = False
) -> None

Adds a user to the team.

delete

delete() -> None

Deletes the team.

get_by_id classmethod

get_by_id(team_id: str) -> Team

Returns the Team specified by the passed ID.

get_by_name classmethod

get_by_name(name: str) -> Team

Returns the Team specified by the passed name if your token authorizes you to see it.

get_list classmethod

get_list() -> list[Team]

Returns all teams of the current user.