List Groups
groups_list(
query = NULL,
permission = NULL,
include_members = NULL,
organization_id = NULL,
user_ids = NULL,
limit = NULL,
page_num = NULL,
order = NULL,
order_dir = NULL
)
An array containing the following fields:
integer, The ID of this group.
string, This group's name.
string, The date and time when this group was created.
string, The date and time when this group was last updated.
string, The description of the group.
string, The slug for this group.
integer, The ID of the organization this group belongs to.
string, The name of the organization this group belongs to.
integer, The number of active members in this group.
integer, The total number of members in this group.
integer, The ID of the user who last updated this group.
integer, The ID of the user who created this group.
array, An array containing the following fields:
id integer, The ID of this user.
name string, This user's name.
username string, This user's username.
initials string, This user's initials.
online boolean, Whether this user is online.
string optional. If specified, it will filter the groups returned.
string optional. A permissions string, one of "read", "write", or "manage". Lists only groups for which the current user has that permission.
boolean optional. Show members of the group.
integer optional. The organization by which to filter groups.
array optional. A list of user IDs to filter groups by.Groups will be returned if any of the users is a member
integer optional. Number of results to return. Defaults to 50. Maximum allowed is 1000.
integer optional. Page number of the results to return. Defaults to the first page, 1.
string optional. The field on which to order the result set. Defaults to name. Must be one of: name, created_at.
string optional. Direction in which to sort, either asc (ascending) or desc (descending) defaulting to asc.