Skip to content

Commit 751e8f2

Browse files
authored
[PLT-0] Add user group management (#1604)
1 parent bc61745 commit 751e8f2

File tree

10 files changed

+983
-35
lines changed

10 files changed

+983
-35
lines changed

docs/labelbox/user-group.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
User Group
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.user_group
5+
:members:
6+
:show-inheritance:

libs/labelbox/src/labelbox/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,19 @@ def get_projects(self, where=None) -> PaginatedCollection:
543543
"""
544544
return self._get_all(Entity.Project, where)
545545

546+
def get_users(self, where=None) -> PaginatedCollection:
547+
""" Fetches all the users.
548+
549+
>>> users = client.get_users(where=User.email == "<user_email>")
550+
551+
Args:
552+
where (Comparison, LogicalOperation or None): The `where` clause
553+
for filtering.
554+
Returns:
555+
An iterable of Users (typically a PaginatedCollection).
556+
"""
557+
return self._get_all(Entity.User, where, filter_deleted=False)
558+
546559
def get_datasets(self, where=None) -> PaginatedCollection:
547560
""" Fetches one or more datasets.
548561

0 commit comments

Comments
 (0)