--- title: "List service accounts" canonical: "https://admiral.io/docs/api/serviceaccounts/ServiceAccountAPI_ListServiceAccounts" --- # List service accounts `GET https://api.admiral.io/v1/serviceAccounts` Scope: `serviceaccount:read` ### Query parameters - `page_size` (integer (int32)): The page_size query parameter. Value 0 to 100. - `page_token` (string): The page_token query parameter. - `filter` (string): An AIP-160 filter expression. Filterable fields are `issuer_id`, the service accounts that trust that issuer, and `agent_id`, the one that agent runs as. Both take a uid. Example: `issuer_id = "iss-4m8q2x7k1p9c"` `uid` is filterable too: `uid = "a" OR uid = "b"` reads up to 100 of them by uid in one call. Length at most 4096. ### Response 200 Success - `service_accounts` (array of ServiceAccount) - `name` (string): (IDENTIFIER) The service account's name, `serviceAccounts/{service_account}`, such as `serviceAccounts/ci-deployer`. An agent's takes the agent's id when it is made. Pattern `^serviceAccounts/[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - `uid` (string): `sa-` and twelve base36 characters. Never changes and is never reused, so it is what a reference to the service account holds, and the `sub` of every token it signs in with. Pattern `^sa-[0-9a-z]+$`. Read-only. - `display_name` (string): A label for people, such as "CI deployer". Optional; clients show the id when it is unset. Length at most 128. - `subject` (string): (IMMUTABLE) The `sub` a token must carry. For a Kubernetes service account, `system:serviceaccount::`; for GitHub Actions, `repo:/:ref:refs/heads/` or `repo:/:environment:`. For an agent's, recorded from its verified token when it enrolls; empty before. Fixed once set. Length at most 512. - `issuer_id` (string): (IMMUTABLE) `iss-`: the issuer whose tokens it accepts. For an agent's, set when the agent enrolls; empty before. For one that runs no agent, set on create. Pattern `^iss-[0-9a-z]+$`. - `agent_id` (string): `agt-`: the agent that runs as this service account. Empty for one that runs no agent. Read-only. - `enrolled_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only. - `etag` (string): Changes whenever the service account does. Send it back on rename or delete to refuse the change if someone else changed it first. Read-only. - `created_by` (ActorRef): ActorRef is a lightweight reference to the user or agent that performed an action. Server-populated on all resource responses. Clients should never send this. Read-only. - `id` (string): The actor's typed id: a `usr-` user id or an `sa-` service account id. - `display_name` (string): Human-readable name (e.g., "John Smith", "deploy-bot"). - `email` (string): Email address (empty for non-human actors). - `created_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC. Read-only. - `next_page_token` (string)