Members and teams
Invite people, give them an organization role, and group them into teams that own apps and hold roles together.
Wardn separates who a person is from what they may do. Sign-in, organizations, members and invitations are handled by the sign-in service built into the web app; what a person may do is decided by Wardn from their organization role, their teams, their grants and what they own. This page covers people and teams. Roles and grants covers the rest, and Access model explains the whole.
Three layers
| Layer | What it is | One per |
|---|---|---|
| Organization role | Owner, Admin, Contributor or Viewer. | Person |
| Team role | Owner, Lead or Member of one team. | Person per team |
| Extra access | A built-in or custom role on a place, for a person, a group or a team. | Grant |
They add together and nothing denies, so two sources of access never conflict.
| Organization role | In short |
|---|---|
| Owner | Everything, including every duty. Reads everything. |
| Admin | Manages members and creates teams, clusters, environments, apps, pipelines and tokens. Owns what they create. Holds no duty (approving, sign-off, exceptions, bypass) and reads only what they own or are granted. |
| Contributor | Works through their teams: reads and syncs, rolls back and raises releases on their teams' apps. Can be a team Lead or Owner and hold duties. |
| Viewer | Reads only, whatever they are granted. A Viewer cannot be a lead, owner, approver or signer; those roles pause and come back if the person is raised. |
Members
Open Access › Members. The list shows each person with their Org role, Teams, Extra access, Last active and Signs in with (for example Okta, GitHub or Email link). Search by name, email or team, and filter by role, No team, Expiring access (grants that end soon) or Invited. A person who manages members (org:manage: Owners and Admins) sees every column and can change a role or choose Remove from org. Everyone else sees the people their teams and the things they can see attach to: owners, leads, approvers and the people in Activity.
Invite people
On Members, choose Invite.
Enter one or more Email addresses and choose the Org role the invitees join with. It defaults to Contributor.
Under Add to teams, pick teams. "Applied to every invitee when they accept."
Choose Send invitation. Pending invitations are listed under Invited with when they were sent and Expires; resend or cancel from the row.
Invitations are handled by the sign-in service, not the Wardn API, so there is no /invitations endpoint. The people you invite accept from their email, and see only what their roles, teams and grants give them.
One person's access
GET /members/{userId}/access lists everything a person can do and why: their organization role, team roles, extra access, who designated them and when it ends. POST /members/{userId}/can-i asks whether they hold one permission on one place and why or why not; both need org:read. From a terminal, wardn can-i <permission> answers for yourself. See Who sees what.
api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }
api "$WARDN_API_URL/api/v1/members?q=casey&orgRole=contributor"
api "$WARDN_API_URL/api/v1/members/$USER_ID/access"
api -X POST "$WARDN_API_URL/api/v1/members/$USER_ID/can-i" \
-d '{"permission": "deployment:rollback", "scope": {"kind": "deployment", "id": "'"$DEPLOYMENT_ID"'"}}'Teams
A team is the people who answer for a set of apps. Teams own apps, pipelines and guardrails, hold roles together, and are the unit of "who can see this". Open Access › Teams; the list shows each team with its Lead, what it Owns, its Access and who is On-call now, and filters by My teams or With on-call.
Create a team
On Teams, choose New team, name it after the people, not the project ("For example: Payments", up to 48 characters, unique), pick who joins ("You are added automatically") and choose Create team. You become its owner. Creating a team needs team:create, which Owners and Admins hold.
Team roles
| Team role | Can |
|---|---|
| Member | Read the team, its apps, their deployments and pipelines; sync and roll back the team's deployments; raise releases. Worked out from membership, never stored. |
| Lead | Everything a member can, plus approve for the team (a duty), and add or remove plain members. Cannot change anyone's role or remove a lead or owner. |
| Owner | Runs the team: its people, its leads, its groups and who may act for it. A team keeps at least one owner. |
Team roles count from Contributor up. Setting one on a Viewer is refused with "Only a Contributor or above can hold a team role. Raise their organization role first."
The team page (Teams › a team) has Details, Members (In this team, Add members, with Member and Lead per person), On-call, Access (the roles people hold for the team, and where each comes from), Owns (its apps and pipelines) and a Danger zone with Delete this team.
api -X PUT "$WARDN_API_URL/api/v1/teams/$TEAM_ID/members/$USER_ID" -d '{"role": "lead"}'
api "$WARDN_API_URL/api/v1/owners/team/$TEAM_ID"
api -X PUT "$WARDN_API_URL/api/v1/owners/team/$TEAM_ID/$USER_ID"Setting a team role needs role:manage on the team. Adding or removing plain members needs team:members, which leads hold. Adding an owner needs role:manage; any owner can add or remove the others, and the last owner stays.
Groups
A group is a named list of people inside a team or the organization, used so a grant can go to many people at once. Create one with POST /groups (team:manage): a name of up to 80 characters, an optional teamId and memberUserIds (up to 1000). A group can also be an on-call group, filled from an on-call schedule rather than by hand; the PagerDuty integration can fill one from its on-call schedule. A group can hold a role like a person can; see Roles and grants.
api -X POST "$WARDN_API_URL/api/v1/groups" -d '{
"name": "Release approvers",
"teamId": "'"$TEAM_ID"'",
"kind": "static",
"memberUserIds": ["'"$USER_ID"'"]
}'Permissions
| Action | Permission |
|---|---|
| See the member list and one person's access | org:read (Owners and Admins) |
| Change an organization role, remove a member, invite | org:manage |
| See teams and groups | team:read |
| Create a team | team:create |
| Rename or delete a team, create or change a group | team:manage |
| Add or remove plain members | team:members |
| Appoint a lead or owner | role:manage on the team |