--- url: >- https://developer-portal.gainsight.com/docs/api/operations/groups/getMembership.md --- # 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. ## Endpoint ``` GET https://api2-eu-west-1.insided.com/groups/memberships/{groupId} ``` **Required scope:** `read` ### Parameters | Name | In | Type | Required | Description | |------|----|------|----------|-------------| | `groupId` | path | integer | Yes | — | | `userId` | query | integer | No | The user whose membership is read (the subject). | ### Responses | Status | Description | |--------|-------------| | 200 | The user's relationship to the group | | 400 | Missing or invalid userId | | 401 | Unauthorized | | 404 | The group does not exist | | 500 | Server error |