Add a teammate who deploys
An org can have teammates who deploy without being owners. The owner adds an existing SaaSLayer account by its account id and, if the teammate should ship changes, makes it a deployer.
1. The teammate signs up and verifies their email
Signup is limited to emails on the SaaSLayer signup allowlist (see Beta admission).
saaslayer signup --email teammate@acme.com
# Cognito emails a code; type it at the prompt (or finish later with --code)
saaslayer signup --email teammate@acme.com --code 123456
saaslayer signup --email teammate@acme.com --resend # a new codeThe code proves the teammate owns the email. An account created before email proof existed verifies with:
saaslayer account verify-email # a code is emailed; type it, or pass --codeThen the teammate prints their account id and sends it to the org owner:
saaslayer login
saaslayer whoami
# Share the account id returned by whoami with your organization owner.2. The owner adds them by account id
saaslayer org members add --user <accountId> --role deployer # --org ID, else the active orgThe CLI shows the account's email and asks you to type it back (skip with --yes). The control plane refuses an
account whose email is not verified (409 EMAIL_NOT_PROVEN): ask the teammate to run saaslayer account verify-email.
Leave out --role deployer to add a member who can only read.
saaslayer org members list
saaslayer org members set-role --user <accountId> --role deployer # or --role member to take deploy rights away
saaslayer org members remove --user <accountId> # revokes the deployer role, then the membershipA member who still belongs to a project of the org, or holds a role there other than deployer, is not removed
(409 CHILD_MEMBERSHIPS_EXIST, nothing changed); the refusal lists what is left. Granting the deployer role to an
account that is not a member of the org is refused (409 NOT_A_MEMBER): add it first.
Only an owner of the org runs these commands (403 OWNER_ONLY otherwise). Each change is recorded with the owner who
made it. Use the organization commands to manage membership and retain an audit record.
3. What a deployer can and cannot do
| A deployer can | A deployer cannot (403 OWNER_ONLY / NOT_RUN_INITIATOR) |
|---|---|
| See the org's deployments, operations and activity | Create or destroy a deployment, add or remove a service |
saaslayer update an existing deployment, including a protected environment with --reason | update --force, approve or report migrations, set social provider secrets |
| Change settings that are not owner-only | Change owner-only settings or management controls |
| Cancel a run it started | Cancel someone else's, an operator's or a fleet run |
| Edit or publish email templates, manage integration credentials or local management, recover a first admin, delete a project, manage org members |
Owners keep every power.
Trust: a deployer ships code. Through the code it deploys, it can change how your application behaves and reach the secrets your workloads use. The deployer role limits what the person can do through SaaSLayer's API; it does not limit what deployed code can do. Make someone a deployer only if you would let them merge to your production branch.
Beta admission
Platform operators manage the signup allowlist. If signup is refused, ask your SaaSLayer contact to admit the teammate's email before continuing. An organization owner's membership permissions do not grant platform-operator access.
Your app's users are separate
These commands manage your SaaSLayer team. They do not add a person to an organization inside your app. For that flow, see Invite people to your app by email.