Community members and org units

Listing members

GET /v1/communities/{communityId}/members

Query parameterDescription
roleFilter by member role: admin, moderator, or member.
qSubstring match on name or email.
limitPage size.
offsetZero-based offset for pagination.

Each item in the response includes:

FieldTypeDescription
idlongMembership record identifier.
userIdlongUser identifier.
emailstringUser's email address.
firstNamestringFirst name.
lastNamestringLast name.
rolestringRole within the community (admin, moderator, or member).
createdAtdatetimeWhen the user joined the community.

Adding members

POST /v1/communities/{communityId}/members

Adds one or more users with a specified role. Duplicate entries (same userId already in the community) are silently skipped — this is not an error.

Request body

{
  "members": [
    { "userId": "ID-1001",    "role": "admin" },
    { "userId": "EMAIL-alice@example.com", "role": "member" },
    { "userId": "EXT-emp123", "role": "moderator" }
  ]
}

userId format

The userId field supports three identifier schemes — prefix is part of the value:

PrefixExampleResolves to
ID-ID-1001Cornerstone internal user ID
EMAIL-EMAIL-alice@example.comUser looked up by email address
EXT-EXT-emp123User looked up by external reference

Allowed roles

RolePermissions
adminFull community management, can moderate content and members.
moderatorCan moderate posts and comments.
memberStandard read and post access.

Returns { "message": "..." } on success.

Removing a member

DELETE /v1/communities/{communityId}/members/{memberId}

Removes the membership identified by memberId (the membership record id, not the userId). Returns { "message": "..." } on success.

Adding an organisational unit

POST /v1/communities/{communityId}/ou

Enrols all users in an OU. This is applied as a query-string operation (the request body is not used for routing parameters).

Request body

{
  "ouId": 10,
  "ouTypeId": 2,
  "ouTypeString": "Department",
  "includeSubOus": false
}
FieldRequiredDescription
ouIdYesIdentifier of the organisational unit.
ouTypeIdYesIdentifier of the OU type.
ouTypeStringYesName of the OU type (e.g. "Department").
includeSubOusNoWhether to include subordinate OUs. Defaults to false.

Returns { "message": "..." } on success.

Removing an organisational unit

DELETE /v1/communities/{communityId}/ou/{ouId}

Removes the OU membership rule for the given ouId. Does not remove individual users who joined through the OU before removal. Returns { "message": "..." } on success.