Home

Workspace

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

add_user

add_user ( name , sub , email , providers )

Add a new user to the workspace.

Parameters:

NameTypeDescriptionDefault
namestrThe name of the user.required
substrThe user's unique identifier (subject).required
emailstrThe email address of the user.required
providersList [str]A list of authentication providers associated with the user.required

delete_users

delete_users ( subs )

Delete users from the workspace.

Parameters:

NameTypeDescriptionDefault
subsList [str]A list of user identifiers (subjects) to be deleted.required

get_users

get_users ( page = 1 , page_size = 10 )

Retrieve a paginated list of users associated with the workspace.

Parameters:

NameTypeDescriptionDefault
pageintThe page number to retrieve. Defaults to 1.1
page_sizeintThe number of users to retrieve per page. Defaults to 10.10

Returns:

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