Skip to content

Get a User's Membership in a Group ​

Group Members

The isMember replacement as an always-200 relationship resource: for an existing group it returns whether userId has joined it (hasJoined), the memberStatus (null when not a member; requested while a pending applicant) and memberSince. A non-member is a valid 200 (hasJoined=false), not a 404 -- a 404 is reserved for a group that does not exist (a hidden group is likewise 404 for a non-member). userId (the subject) is required; authorization is deferred to the permission layer.

GET
/memberships/{groupId}

Parameters​

Path Parameters

groupId*
Type
integer
Required

Query Parameters

userId

The user whose membership is read (the subject).

Type
integer

Responses​

The user's relationship to the group

application/json
JSON
{
  
"group": {
  
  
"id": "string",
  
  
"name": "string"
  
},
  
"hasJoined": true,
  
"memberStatus": "string",
  
"memberSince": "string"
}

Samples​

Gainsight CC Developer Portal