Member Management
The member management APIs manage the members of a Space. Each API maps to an action on the console’s Members page, with the same permissions and business rules as the console.
| Console action | API | Notes |
|---|---|---|
| Members list | List Members POST /openapi/v1/members/list | Exact lookup by email; filter by status and role |
| Add Member | Add Members POST /openapi/v1/members/add | New members are To Be Activated and receive an invitation email |
| Edit | Edit Member POST /openapi/v1/members/modify | Change name and roles |
| Enable / Disable | Enable/Disable Member POST /openapi/v1/members/change-status | |
| Remove | Remove Member POST /openapi/v1/members/delete | Only Disabled members can be removed |
| Invite Again | Invite Member Again POST /openapi/v1/members/invite | Only To Be Activated members can be invited again |
Field mapping to the console
| API field | Value | Shown in console as |
|---|---|---|
Roles | admin | Administrator (the Space owner is also returned as admin) |
sender | Sender | |
Status | enabled | Enabled |
pending_activation | To Be Activated | |
disabled | Disabled | |
CreatedAt | RFC3339 (UTC) | Time Added |
Common rules
- Scope of operation: The APIs operate on the Space the access_token belongs to; Add Members can target another Space where the app is installed via
SpaceId. - Operator: The authorized user in authorization_code mode; in client_credentials mode, specify it with
X-Operator-User-Id(optional for Add Members, in which case the app acts on its own behalf). The operator must be a Space administrator. - Permission hierarchy: When editing, enabling/disabling, or removing members, the owner can operate on any member; other administrators can only operate on Senders.
- Locating a member: Edit, Enable/Disable, Remove, and Invite Again all identify the member by
Email. - User ID: A member gets a
UserIdonly after joining the Space;UserIdis an empty string for To Be Activated members. - Required Scope:
member:manage.