You can get the list of groups with the getGroups method.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
|credentials (required)||credentials||Read the description of the Credentials object.|
|organizationId (optional)||int||List of groups in the specified organization.|
Organization Administrators can get the list of groups only within their own organization.
If the specified organization is not found, you will get the list of all groups in the response. As for Publishers and Organization Administrators, they will get the list of groups within their own organization in this case.
After the request has been completed, the system returns an object with the following properties:
|groups||group||An array of groups. The Group object has the same properties as in the getGroupInformation method.|