Get user memberships within an organization
const url = 'https://localhost:8080/api/v1/organizations/example/members/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/members/example/memberships \ --header 'Authorization: <Authorization>'Return a user’s organization membership and their project assignments scoped to the organization
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization ID or UUID (bare or urn:uuid)
User UUID (bare or urn:uuid) or did:key
Responses
Section titled “ Responses ”User memberships
One user’s organization membership together with their project assignments
object
A user’s assignment to a single project, and the roles it grants
object
Example generated
{ "did": "example", "email": "example", "invitedAt": "2026-04-15T12:00:00Z", "invitedBy": "example", "joinedAt": "2026-04-15T12:00:00Z", "lastLoginAt": "2026-04-15T12:00:00Z", "name": "example", "pictureUrl": "example", "projects": [ { "assignedAt": "2026-04-15T12:00:00Z", "organizationId": 1, "projectId": 1, "roles": [ "example" ], "status": "example", "userId": "example" } ], "roles": [ "example" ], "status": "example", "userId": "example"}Invalid user ID
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - requires access to this organization
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Organization or user not found, or user is not a member of it
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}