Mediloop

Memberships

Platform

Manage the association between a user and an organization tenant, including role, status and lifecycle.

Identity

One user identity

Membership

Tenant affiliation

Role

Functional access

Context

Tenant + membership

Overview

Memberships are the authorization bridge between users and tenants. The same user can hold different roles in different tenants.

Membership model

FieldTypeDescription
idstringImmutable membership identifier
user_idstringMediloop user linked to the membership
tenant_idstringTenant in which access is granted
rolesstring[]Functional roles assigned to the membership
statusenuminvited, active, suspended, terminated
created_atdate-timeMembership creation timestamp

List memberships

GET membershipsCopy
GET /v1/memberships?user_id=usr_123&status=active
Authorization: Bearer $ACCESS_TOKEN

Membership fields

ConceptDescription
AffiliationWhich tenant the user belongs to
Role assignmentFunctional role(s) for that tenant
StatusWhether the membership grants access
Audit identityMembership ID used for attribution of professional actions

Status values

StatusMeaning
invitedInvitation created; not yet active
activeMembership grants access
suspendedTemporarily blocked without deleting history
terminatedEnded permanently; historical record retained