Skip to content

Workspace

A Workspace represents a collection of users, datasets, and models they have access to.

add_user(name, sub, email, providers)

Add a new user to the workspace.

Parameters:

Name Type Description Default
name str

The name of the user.

required
sub str

The user's unique identifier (subject).

required
email str

The email address of the user.

required
providers List[str]

A list of authentication providers associated with the user.

required

delete_users(subs)

Delete users from the workspace.

Parameters:

Name Type Description Default
subs List[str]

A list of user identifiers (subjects) to be deleted.

required

get_users(page=1, page_size=10)

Retrieve a paginated list of users associated with the workspace.

Parameters:

Name Type Description Default
page int

The page number to retrieve. Defaults to 1.

1
page_size int

The number of users to retrieve per page. Defaults to 10.

10

Returns:

Type Description
List[Dict]

List[Dict]: A list of dictionaries containing user information.