A person’s role reaches Shepherd two ways, and the two coexist. Either your identity provider puts them in a group Shepherd knows about, or an application administrator gives them a local account and a role in an organisation. Neither is a fallback for the other — you can run entirely on single sign-on, entirely on local accounts, or mix them, and a session is judged on one source only.
| Actor | Can | Cannot |
|---|---|---|
| Application administrator | Everything, everywhere: create organisations and decide which tenants and tenant prefixes each one owns and whether it is in strict tenant mode, claim clusters into orgs, issue and revoke agent tokens for any org and bind a token to an org, configure single sign-on, manage local accounts. | — |
| Organisation administrator | Everything inside one org, including what the org is: destinations, tenant routes, git credentials and repo links, teams, service accounts, the group assignments and labels on that org’s collectors, Connect a cluster, a pipeline’s owning team, the org’s agent tokens (served only the org’s claimed clusters), and the org’s audit log. | Reach another org, claim clusters, or see or bind a token that is not bound to their org. |
| Organisation editor | Author what the org runs: pipelines, wizards, the visual builder, simulations. | Change where telemetry ships — destinations, tenant routes, git credentials and teams stay with the org admin, as do collector labels, a pipeline’s owning team and the audit log. |
| Team member | Edit, enable, disable, restore, detach and delete the pipelines their team owns, as text or in the visual builder; read the rest of the org like a viewer. | Touch pipelines their team does not own, create pipelines in the UI (from a wizard, the visual builder or text), or run a simulation — those stay with the org editor. (Through the API a team member can create a pipeline owned by their own team.) |
| Viewer | View the organisation’s collectors and pipelines, and the config each collector is served. | Create or change anything. |
Service account (apply) |
Machine writes within one org, and every write must name the human it acts for — a claim verified against the credential, not taken on trust. | Ever be an app admin. Act without an on-behalf-of. |
Service account (propose) |
Read, validate and simulate freely. | Apply anything. |
| Service account (viewer) | Exactly what a viewer can: read the org’s collectors, pipelines and served config. It carries no capability. | Write anything, simulate, or reach any admin procedure. |
| Collector (agent token) | Fetch its own merged config and report status, over HTTP Basic auth with an agent token bound to its organisation, or with an OIDC access token. | Read or change anything in the management API. |
Writing a pipeline and re-pointing where an org’s telemetry ships used to be the same permission: both needed org admin. They are different risks. An editor can author freely without being able to change a destination, a tenant route, or a git credential — so the person who tunes a scrape interval does not also hold the ability to redirect the fleet’s data somewhere else.
From your identity provider. Each organisation names an admin, editor and
viewer group at Admin → Organisations. Whatever your provider emits in the groups
claim is matched against those values — object GUIDs for Microsoft Entra, and for every
other provider whatever it actually emits, usually a group name or a path. App-admin rights
come from auth.app_admin_group_ids when single sign-on is configured in the
chart, and from the App admin groups field on Admin → Single
sign-on when it is set up in the UI.
A service account also has a role tier, viewer, editor or admin, which caps what it can
call. A viewer-tier account is read-only and has no capability; an editor or admin account
is propose or apply. An apply account can write any
pipeline in its org whatever team owns it, so issue it as an org-level credential.
The management API is Connect RPC: every procedure is a POST to
/shepherd.mgmt.v1.<Service>/<Method> with a JSON body. A service
account authenticates with HTTP Basic auth, its id as the user and its one-time secret as the
password. Every call must also send X-Requested-With: XMLHttpRequest: the
server’s CSRF guard applies to every non-GET request, whatever the credential, and a
call without the header is refused with 403 csrf_required.
curl -sS -u "$SA_ID:$SA_SECRET" \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Content-Type: application/json' \
-d '{"orgId": "<org-uuid>"}' \
https://shepherd.example.com/shepherd.mgmt.v1.FleetService/ListCollectors
A write from an apply account must also name the human it acts for, in a
Shepherd-On-Behalf-Of header. The MCP agent sets all of
these headers itself.
From a local account. An app admin creates the account at Admin → Users and assigns its role per organisation there. See Users and teams.
An account with no organisation sees nothing. It can sign in, and that is all. Assigning at least one org role is part of creating a usable account, not a separate administrative step.