groups_list(query = NULL, permission = NULL, limit = NULL, page_num = NULL, order = NULL, order_dir = NULL)
string optional. If specified, it will filter the groups returned. Infix matching is supported (e.g., "query=group" will return "group" and "group of people" and "my group" and "my group of people").
string optional. A permissions string, one of "read", "write", or "manage". Lists only groups for which the current user has that permission.
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.
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 slug for this group.
integer, The organization associated with this group.