---
title: "List Service Accounts For Project"
method: GET
path: "/projects/{projectId}/service-accounts"
tags: ["Project Membership"]
---

# List Service Accounts For Project

`GET /projects/{projectId}/service-accounts`

Retrieve a list of service accounts that are members of the specified project

## Response `200`

Success

- ListServiceAccountsForProjectResponse
  - `results` object[]
    - `id` integer — The unique identifier for this service account
    - `username` string — The username of the service account
    - `last_used` string, date-time — The date/time this service account was last used for authentication
    - `expires` string, date-time — The date/time this service account will expire
    - `creator` integer — The Mixpanel user id that created this service account
    - `created` string, date-time — The date/time this service account was created
    - `user` integer — The Mixpanel user id that this serivce account represents. This is only used internally and is safe to ignore.
    - `hasSensitiveAccess` boolean — Wether or not the service account has access to classified data. See https://help.mixpanel.com/hc/en-us/articles/360044295131-Data-Classification
    - `role` 'owner' | 'admin' | 'analyst' | 'consumer' — The service account's role
    - `role_order` integer — This is only used internally and is safe to ignore
    - `target_type` 'individual' | 'team' | 'organization' — The grant type that gives the service account membership to the project (usually "individual")
    - `email` string — This is only used internally and is safe to ignore
  - `status` 'ok' — "ok" if the request succeeded, "error" otherwise.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/mixpanel/apis/query-api.md) · [All operations](https://skmtc.net/mixpanel/apis/query-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpanel/query-api/versions/f442da95252a/schema)
