User Groups
get_usergroup(group_id)
async
create_usergroup(usergroup)
async
update_usergroup(group_id, usergroup)
async
delete_usergroup(group_id, missing_ok=None)
async
get_usergroups(group_name=None, ldap_group_dn=None, page=1, page_size=10, limit=None)
async
Get all user groups.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
group_name |
Optional[str]
|
The group name to search for (fuzzy matching). |
None
|
ldap_group_dn |
Optional[str]
|
The LDAP group DN to search with. |
None
|
page |
int
|
The page of results to return |
1
|
page_size |
int
|
The number of results to return per page |
10
|
limit |
Optional[int]
|
The maximum number of results to return |
None
|
Returns:
Type | Description |
---|---|
List[UserGroup]
|
List of user groups. |
search_usergroups(group_name, page=1, page_size=10, limit=None)
async
Search for user groups by group name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
group_name |
str
|
The group name to search for. |
required |
page |
int
|
The page of results to return |
1
|
page_size |
int
|
The number of results to return per page |
10
|
limit |
Optional[int]
|
The maximum number of results to return. |
None
|
Returns:
Type | Description |
---|---|
List[UserGroupSearchItem]
|
List of user groups. |