Skip to content
Invitations and sign-up links

Invitations and sign-up links

Your service invites people from inside the machine, with space-env web-portal invite or the guest API (From the machine): the portal app has no list of your users, and roles, workspaces and the like are your service’s business. Give them as data; it comes back in the approval call when the invite is accepted.

space-env web-portal invite ada@example.com --data '{"role":"admin"}'
space-env web-portal invite bob@example.com --no-mail
space-env web-portal invites
space-env web-portal revoke 01a1c587-7d4e-7000-8000-000000000001

--no-mail prints the link to hand over; invites lists the open invites and sign-up links; revoke ends one (its link stops working).

  • The auth service mails the invitation in the portal’s brand name and colour. It is valid 14 days (--days, 1 to 30). --no-mail only returns the link (“copy invite link”).
  • Resend: invite the same address again. The earlier link stops working.
  • An address that already has an account is refused (already_member, with its sub).
  • The invite page (/_portal/invite) offers the portal’s ways in: a password for the invited address, Google or Microsoft (whose verified address may differ: the account takes the provider’s, your service learns both), or a plain Accept on a portal without passwords. The invite link proves the address, so Invite only and the domain list don’t apply; your service is still asked and may refuse.

Sign-up links

A sign-up link admits anyone who has it, for a day (--days up to 30), many times, also on an Invite only portal; the domain list still applies. Its data (a workspace, a team) comes back in the approval call as signup_link.

space-env web-portal signup-link --data '{"workspace":"w1"}'

Your users

space-env web-portal users
space-env web-portal disable 01a1c587-7d4e-7000-8000-000000000002
space-env web-portal enable 01a1c587-7d4e-7000-8000-000000000002
space-env web-portal sign-out 01a1c587-7d4e-7000-8000-000000000002
space-env web-portal reset-2fa 01a1c587-7d4e-7000-8000-000000000002

users lists each account’s sub, when it was made, its last sign-in, and whether it is disabled, has two-factor and a verified email. disable stops its sign-ins and ends every session and app connection; sign-out ends the sessions and keeps the account; reset-2fa helps someone who lost their authenticator.

The list has no emails: your service has them from the approval call.

Last updated on