Groups
List groups
client.admin.organization.groups.list(GroupListParams { after, limit, order } query?, RequestOptionsoptions?): NextCursorPage<Group { id, created_at, group_type, 2 more } >
GET/organization/groups
Create group
client.admin.organization.groups.create(GroupCreateParams { name } body, RequestOptionsoptions?): Group { id, created_at, group_type, 2 more }
POST/organization/groups
Update group
client.admin.organization.groups.update(stringgroupID, GroupUpdateParams { name } body, RequestOptionsoptions?): GroupUpdateResponse { id, created_at, is_scim_managed, name }
POST/organization/groups/{group_id}
Delete group
client.admin.organization.groups.delete(stringgroupID, RequestOptionsoptions?): GroupDeleteResponse { id, deleted, object }
DELETE/organization/groups/{group_id}
GroupsUsers
List group users
client.admin.organization.groups.users.list(stringgroupID, UserListParams { after, limit, order } query?, RequestOptionsoptions?): NextCursorPage<OrganizationGroupUser { id, email, name } >
GET/organization/groups/{group_id}/users
Add group user
client.admin.organization.groups.users.create(stringgroupID, UserCreateParams { user_id } body, RequestOptionsoptions?): UserCreateResponse { group_id, object, user_id }
POST/organization/groups/{group_id}/users
Remove group user
client.admin.organization.groups.users.delete(stringuserID, UserDeleteParams { group_id } params, RequestOptionsoptions?): UserDeleteResponse { deleted, object }
DELETE/organization/groups/{group_id}/users/{user_id}
GroupsRoles
List group organization role assignments
client.admin.organization.groups.roles.list(stringgroupID, RoleListParams { after, limit, order } query?, RequestOptionsoptions?): NextCursorPage<RoleListResponse { id, created_at, created_by, 8 more } >
GET/organization/groups/{group_id}/roles
Assign organization role to group
client.admin.organization.groups.roles.create(stringgroupID, RoleCreateParams { role_id } body, RequestOptionsoptions?): RoleCreateResponse { group, object, role }
POST/organization/groups/{group_id}/roles
Unassign organization role from group
client.admin.organization.groups.roles.delete(stringroleID, RoleDeleteParams { group_id } params, RequestOptionsoptions?): RoleDeleteResponse { deleted, object }
DELETE/organization/groups/{group_id}/roles/{role_id}