Skip to content

Tenant.invite

POST /{namespace}/tenants/{tenant}/invite

Invite asks a Person to join a Customer’s Tenant, and resizes the Subscription when the Offer prices per member.

Noun
Tenant
Mode
do
Event
Tenant.invited

Inputs

InputTypeRequiredDescription
tenantTenantrequiredThe Customer’s Tenant.
emailemailrequiredWhere the invitation goes.

Outputs

OutputTypeRequiredDescription
personPersonrequiredThe invited Person.
tenantTenantrequiredThe Tenant the Person was invited to.

Effects

  • Emits Tenant.invited.
  • Performed by the Security Engineer.
  • Two-way: it runs at once, in the try, send and do modes.
  • Adds one unit through Subscription.resize when no unit is free.
  • Grants the Tenant’s Entitlements to the Person once they accept.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Tenant.invite

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.