---
title: "List service accounts in an org"
method: GET
path: "/orgs/{orgId}/service-accounts"
tags: ["Service Account", "experimental"]
---

# List service accounts in an org

`GET /orgs/{orgId}/service-accounts`

Retrieves all service accounts for the specified organization.

#### Scopes
**[OAuth 2.0 scopes](/cloud/admin/scopes/) required:** `read:service-accounts:admin`

## Path parameters

- `orgId` string, required

## Response `200`

Returned if the request is successful.

- ServiceAccountListResponse
  - `links` object, required — Pagination links.
    - `next` string, nullable — URL to the next page of results. Not present on the last page.
    - `prev` string, nullable — URL to the previous page of results. Not present on the first page.
  - `items` ServiceAccount[], required — List of service accounts in the organization.
    - `atlassianId` string, required — The Atlassian account ID of the service account.
    - `id` string, required — The unique identifier of the service account. Same value as `atlassianId`.
    - `email` string — The email address of the service account.
    - `displayName` string, required — The display name of the service account.
    - `picture` string, nullable — The URL of the service account's avatar image.
    - `container` string — The ARI of the organization the service account belongs to. e.g. `ari:cloud:platform::org/{orgId}`
    - `updatedAt` integer — The timestamp (in milliseconds since epoch) when the service account was last updated.
    - `status` string, required — The status of the service account.
    - `createdById` string, nullable — The account ID of the user who created the service account.
    - `description` string, nullable — The description of the service account.
  - `total` integer, required — The total number of service accounts in the organization.

## Other responses

- `403` — Returned if the user does not have permission to view service accounts.
- `500` — Internal Error

---

[API](https://skmtc.net/atlassian/apis/api-access.md) · [All operations](https://skmtc.net/atlassian/apis/api-access/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/api-access/revisions/412d18f78d91/schema)
