Required role: admin or higher.
Add a member to the acting tenant by identity, before the user's first
login. The grant is dormant until that identity authenticates into the
tenant through the IdP. The role is capped at the caller's own role and may
not be owner.
| Request Body — REQUIRED |
|---|
email stringOptional email for display in the member list. |
role string — REQUIREDPossible values: [read, write, admin] A role assignable to a tenant member: read, write, or admin. owner
is a platform-wide role, not a tenant membership, so it is not a valid value
here. |
subject string — REQUIREDOIDC subject (matches the JWT sub claim). The issuer is not settable:
members authenticate through the platform's single configured issuer, so
the grant is keyed to that issuer automatically. |
| Responses |
|---|
| Schema — OPTIONAL |
|---|
user_id uuidIdentifier of a persisted user (the principal behind an OIDC sub). |
|
403
Caller's role is below the required role, or the requested role is owner | Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|
| Schema — OPTIONAL |
|---|
detailsDetailed error metadata.
The contents of this field is determined by error_code. | error_code stringError code is a string that specifies this error type. | message stringHuman-readable error message. |
|