Skip to content
English
  • There are no suggestions because the search field is empty.

Get user memberships within an organization

GET
/api/v1/organizations/{organizationId}/members/{userId}/memberships

       
curl --request GET \
--url https://localhost:8080/api/v1/organizations/example/members/example/memberships \
--header ' Authorization: '

Return a user’s organization membership and their project assignments scoped to the organization

organizationId
required
string

Organization ID (integer)

userId
required
string

User ID

User memberships

Media type application/json
object
email
string
invitedAt
string
invitedBy
string
joinedAt
string
lastLoginAt
string
name
string
pictureUrl
string
projects
Array
object
assignedAt
string
organizationId
integer
projectId
integer
roles
Array
status
string
userId
string
roles
Array
status
string
userId
string
Example generated

                 
{
"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 user ID

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 "
}

User is not a member of this organization

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 "
}