Returns the groups a user belongs to, along with their role in each group. By default, returns memberships for the authenticated user. Admins may impersonate another user by providing the userID query parameter.
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
Query Params
Responses
🟢200OK
application/json
List of group memberships
Body
🟠400Bad Request
🟠403Forbidden
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://mock.apidog.com/m1/1126461-0-default/user/memberships?userID' \
--header'X-API-KEY: <api-key>'