ghl_social_get_community_users
Lists the members of a connected Community channel who can publish posts, so you can select a contactId to post as. Use accountId per channel and paginate results.
Instructions
Get Community Members List the members you can publish a post as, for one connected Community channel.
accountId is the Community account ID from the Get Accounts API. Each Community account represents one channel and members are scoped to it: for a private channel only that channel's members are returned, for a public channel the group's members are. Always list members per account rather than reusing one list across accounts.
Pass a returned contactId as communityPostDetails.postAsUser[accountId].id when creating a post. Only members who can publish are returned — a member must be Active and hold a role in the group.
Results are paginated; meta.nextPage is null on the last page.
Endpoint: GET /social-media-posting/{locationId}/community/accounts/{accountId}/users (Version header: v3; source: v3/social-planner-v3.json)
Requires a Sub-Account (location) token.
OAuth scopes: socialplanner/oauth.readonly
Pagination params: limit — pass them to page through full result sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of members per page. Defaults to 10, max 100. | |
| pageNo | No | Page number for pagination. Defaults to 1. | |
| accountId | Yes | Community account Id, from the Get Accounts API | |
| locationId | Yes | Location Id | |
| searchText | No | Filter members by name. Communities matches on 2 or more characters; a less than 2 characters value returns no members. |