List memberships for all users in an organization
GET
/api/v1/organizations/{organizationId}/memberships
const url = 'https://localhost:8080/api/v1/organizations/example/memberships';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/api/v1/organizations/example/memberships \ --header 'Authorization: <Authorization>'Return every member’s organization role and their project assignments within the organization, ordered by most recent join
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” organizationId
required
string
Organization ID (integer)
Responses
Section titled “ Responses ”Users’ memberships
Media type application/json
object
organizationId
integer
users
Array<object>
object
email
string
invitedAt
string
invitedBy
string
joinedAt
string
lastLoginAt
string
name
string
pictureUrl
string
projects
Array<object>
object
assignedAt
string
organizationId
integer
projectId
integer
roles
Array<string>
status
string
userId
string
roles
Array<string>
status
string
userId
string
Example generated
{ "organizationId": 1, "users": [ { "email": "example", "invitedAt": "example", "invitedBy": "example", "joinedAt": "example", "lastLoginAt": "example", "name": "example", "pictureUrl": "example", "projects": [ { "assignedAt": "example", "organizationId": 1, "projectId": 1, "roles": [ "example" ], "status": "example", "userId": "example" } ], "roles": [ "example" ], "status": "example", "userId": "example" } ]}Invalid params
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - requires Organization Owner or Project Owner role
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}