Account and team / Overview
Teams and access policies
Give each person and each API key exactly the access they need, with teams and policies on top of the owner, admin and member roles.
Roles say who runs the organization. Policies say, action by action, what a person or a key may do, and on which resources. Teams let you give a policy to a group at once.
Nothing changes until you add a policy. An organization with no policies works exactly as it always has.
Roles and policies
Everyone in an organization has one role: owner, admin or member (shown as Viewer in the console).
| Role | Without policies | With policies |
|---|---|---|
| Owner | Everything | Everything. No policy applies to an owner |
| Admin | What the admin role allows | The same, except what a policy denies |
| Member | Reads everything except teams and policies, changes nothing | Reads what the baseline allows, and does what a policy allows. A deny always wins |
Roles still decide who can invite people, change roles and administer teams and policies. No policy can grant those, so nobody can use a policy to give themselves more.
How a request is decided
Every request names one action, such as instances:Stop or dns:ChangeRecords, and usually one resource. Pantech decides it in this order:
- The member and the organization must be active.
- Owners are always allowed. This is the break-glass: an owner can always undo a policy, so you cannot lock yourself out.
- Pantech collects every statement of every policy attached to the member, directly or through their teams.
- A matching deny wins, for admins and members alike.
- Otherwise an admin is allowed.
- Otherwise a member is allowed if an allow statement matches, or if the action only reads and the organization's baseline is
read.iam:Readis the exception: the baseline never grants it. - Otherwise the request is refused with
403 ACCESS_DENIED. The error names the action, never the policy, so a member cannot map your rules by trying things. Where no policy or baseline setting played a part, the refusal is the403 FORBIDDENthe role rules have always given.
Every other rule still applies after that. A suspended account still cannot create anything, and a domain still needs credit to buy.
The member baseline
The organization's member baseline decides what members can read without a policy:
read, the default: members read everything, as before, except teams, policies and other members' access, which neediam:Read.none: members read only what a policy allows.
Only owners can change it, in the console under Access (IAM) › Settings, with pantech iam settings set --member-baseline none or with PUT /iam/settings. Every owner is emailed when it changes.
API keys
A key is checked as the member who created it. Two more limits then narrow it:
- its scope:
read,write, and for AI appsdelete; - its optional key policy: allow statements only, set when the key is created. A key policy can only take access away.
So a key can never do more than the person who made it. A key with a key policy also cannot change teams, policies, attachments or the baseline. See key policies.
What policies can say
A policy is up to 20 statements. Each one allows or denies some actions on some resources, optionally only from some addresses (here <office-cidr>, your office's public range) or only with MFA:
{
"sid": "RestartStaging",
"effect": "allow",
"actions": ["instances:Read", "instances:Start", "instances:Stop", "instances:Reboot", "instances:Resize"],
"resources": ["name:staging-*"],
"conditions": { "source_ip": ["<office-cidr>"] }
}Writing policies covers statements, resources and conditions. The action catalogue lists every action. Recipes has complete policies for common cases.
Who can administer access
| Can… | Owner | Admin | Member |
|---|---|---|---|
| Read teams, policies and attachments, and use the simulator | ✓ | ✓ | With iam:Read |
| Create, change and delete teams and policies | ✓ | ✓ | |
| Attach policies to members, and add members to teams | ✓ | ✓ | |
| Act on an admin: attach a policy to them, add them to or remove them from a team, delete a team they are in, or change or detach a policy they have | ✓ | ||
| Change the member baseline | ✓ |
Only owners can act on admins, or on a team with an admin in it. Otherwise an admin could lift a deny placed on themselves.
Every member can see their own effective access.
When changes apply
A change to a policy, team, attachment or the baseline applies everywhere within 2 seconds. Nobody needs to sign out.
Lists follow the same rules. A member allowed to read only some instances sees only those. A page can then hold fewer items than limit; keep following next_cursor as usual.
Audit and notices
Every change to teams, policies, attachments and the baseline is in the organization's audit trail, with who made it and what it was before and after.
Owners are emailed a security notice when a member gains write access, through an attachment, a policy change or joining a team, and when the member baseline changes. Every change to teams, policies, attachments and the baseline is also a webhook event.
Limits
| Limit | |
|---|---|
| Teams per organization | 50 |
| Customer policies per organization | 100 |
| Statements per policy | 1 to 20 |
| Actions, and resources, per statement | 1 to 50 |
CIDRs in one source_ip condition | 20 |
| Policies attached to one member, or one team | 10 |
From code
policy, err := c.IAM.CreatePolicy(ctx, pantech.CreateIAMPolicyRequest{
Name: "staging-operators",
Statements: []pantech.PolicyStatement{
pantech.Allow(
[]string{"instances:Read", "instances:Start", "instances:Stop", "instances:Reboot"},
[]string{"name:staging-*"},
).WithSid("RestartStaging"),
},
})
if err != nil {
return err
}
team, err := c.IAM.CreateTeam(ctx, pantech.CreateIAMTeamRequest{Name: "Staging operators"})
if err != nil {
return err
}
if _, err := c.IAM.AddTeamMember(ctx, team.ID, "usr_06gk3x9tq7m2v8r4y1c5d0zp8w"); err != nil {
return err
}
_, err = c.IAM.Attach(ctx, policy.ID, pantech.AttachIAMPolicyRequest{PrincipalType: "team", PrincipalID: team.ID})import { iam } from "@pantechdynamic/sdk";
const policy = await pantech.iam.policies.create({
name: "staging-operators",
statements: [
iam.allow(
["instances:Read", "instances:Start", "instances:Stop", "instances:Reboot"],
["name:staging-*"],
{ sid: "RestartStaging" },
),
],
});
const team = await pantech.iam.teams.create({ name: "Staging operators" });
await pantech.iam.teams.members.add(team.id, "usr_06gk3x9tq7m2v8r4y1c5d0zp8w");
await pantech.iam.policies.attachments.attach(policy.id, { principal_type: "team", principal_id: team.id });from pantech import iam
policy = client.iam.policies.create(
name="staging-operators",
statements=[
iam.allow(
["instances:Read", "instances:Start", "instances:Stop", "instances:Reboot"],
["name:staging-*"],
sid="RestartStaging",
),
],
)
team = client.iam.teams.create(name="Staging operators")
client.iam.teams.members.add(team["id"], "usr_06gk3x9tq7m2v8r4y1c5d0zp8w")
client.iam.policies.attachments.attach(policy["id"], principal_type="team", principal_id=team["id"])Change a policy with UpdatePolicy in Go, passing pantech.WithIfMatch(policy.Version), so a change made by someone else in the meantime is refused. pantech.Deny builds a deny, and .WithSourceIP(...) and .WithMFA() add conditions.
Every endpoint is in the IAM API reference.