Roles & Permissions
Autoheal decides what someone can do from the roles they hold. A role is a set of permissions. You give a role to a user, a user group or a service account, either on the organization or on one project.
To add users, create user groups and change who has access, see Managing Access.
Organizations and projects
Your organization is your company's Autoheal account. It holds your users, user groups, projects, sign-in settings and usage.
A project holds the work: agents, skills and runbooks, chats, runs and investigations, integrations, alerts, incidents, on-call, status pages, the Context Graph and memories. What's in one project isn't visible from another. Most organizations start with one project. Larger teams use a project per product or team.
Every project is part of one organization. Users belong to the organization and are given roles on the projects they work in.
Who can hold a role
| What it is | Where it lives | |
|---|---|---|
| User | A person who signs in to Autoheal | The organization |
| User group | A named set of users. A role given to a user group applies to everyone in it | The organization |
| Service account | An identity for automation, such as CI or a script. It calls the API with its own keys | The organization, or one project |
Roles
Autoheal has four built-in roles.
- Read-only: sees everything in a project except other users' chats, and changes nothing. For stakeholders who need visibility.
- Member: does the day-to-day work in a project. A Member chats with and runs agents. A Member creates and edits agents, skills, runbooks, triggers, entities in the Context Graph and memories. A Member starts investigations, responds to alerts, pages and incidents, and approves agent requests. Members create and change these, but deleting them is for Project Admins. Members can also add and remove on-call overrides. For engineers and responders. What agents may do stays bounded by the project's integrations and policies, which only Project Admins change. Member can only be given on a project.
- Project Admin: everything in a project, including its integrations, settings, service accounts and who has access to it. For the users who own a project.
- Org Admin: runs the organization: its users, user groups, projects, roles and sign-in settings, and sees the organization's Insights (runs, success, spend and waits, compared across projects). Org Admin holds no project content: an Org Admin who also works in a project needs a role there too.
Where a role applies
| Given on | Applies |
|---|---|
| A project | In that project only |
| The organization | In every project, and on the organization's own pages |
Read-only, Project Admin and Org Admin can be given on the organization. Read-only, Member and Project Admin can be given on a project.
How access adds up
Someone can hold roles in several ways at once: given to them directly, through each user group they're in, and on the organization. They can do everything any of those roles allows. Nothing removes access. A role on a project adds to what the organization gives. It never narrows it.
Each project's IAM and Users pages show, for everyone, their broadest role there and the user group it comes via, if any. A role given on the organization shows as All projects. Hover via N sources or +N on a row to see the rest. A person's page lists all of it: each role, Where it applies, and what it's Granted by: a user group, or Direct with who granted it and when.
Project creators and the last admin
- Whoever creates a project becomes its Project Admin.
- Your organization always keeps at least one Org Admin: the last one can't be removed.
- A project can be left without a Project Admin. An Org Admin can give someone the role again.
Permissions
Each permission is shown with its key, which is what the API checks. The tables are generated from the same definitions the server checks. The same lists are in the app: Roles in your organization's sidebar shows each role as a matrix of resources and verbs.
A key is a resource and a verb:
- read sees it.
- create makes a new one.
- delete removes one.
- update changes one that exists, including its parts and actions on it. This covers a user group's members, a status page's services and subscribers, and enabling, disabling, testing or rotating. Update never creates or deletes.
- run runs agents and tools.