benchling_sdk.services.v2.stable.user_service module¶

class UserService¶

Bases: benchling_sdk.services.v2.base_service.BaseService

Users.

Benchling users.

See https://benchling.com/api/reference#/Users

bulk_create(user_creates: Iterable[UserCreate]) → AsyncTaskLink¶

Bulk create users.

See https://benchling.com/api/reference#/Users/bulkCreateUsers

bulk_update(user_updates: Iterable[UserBulkUpdate]) → AsyncTaskLink¶

Bulk update users.

See https://benchling.com/api/reference#/Users/bulkUpdateUsers

create(user_create: UserCreate) → User¶

Create a user.

See https://benchling.com/api/reference#/Users/createUser

get_by_id(user_id: str) → User¶

Get a user by ID.

See https://benchling.com/api/reference#/Users/getUser

get_user_activity(user_id: str) → UserActivity¶

Get activity metadata for a specific user.

See https://benchling.com/api/reference#/Users/getUserActivity

list(*, ids: Optional[Iterable[str]] = None, name: Optional[str] = None, name_includes: Optional[str] = None, names_any_of: Optional[Iterable[str]] = None, names_any_of_case_sensitive: Optional[Iterable[str]] = None, modified_at: Optional[str] = None, member_of: Optional[Iterable[str]] = None, admin_of: Optional[Iterable[str]] = None, handles: Optional[Iterable[str]] = None, email_any_of: Optional[Iterable[str]] = None, password_last_changed_at: Optional[str] = None, sort: Optional[ListUsersSort] = None, page_size: Optional[int] = 50, mentioned_in: Optional[List[str]] = None) → PageIterator[User]¶

List users.

See https://benchling.com/api/reference#/Users/listUsers

update(user_id: str, user_update: UserUpdate) → User¶

Update a user.

See https://benchling.com/api/reference#/Users/updateUser