---
title: "Show a service account's access graph by name"
method: GET
path: "/access_graph/service_account/:service_account_name"
---

# Show a service account's access graph by name

`GET /access_graph/service_account/:service_account_name`

## Request

- Base URL: `https://api.border0.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.border0.com/access_graph/service_account/:service_account_name`
- Auth: API key in header `Authorization`

## Path parameters

- `service_account_name` string, required

## Response `200`

OK

- SerializerAccessGraph
  - `edges` SerializerAccessGraphEdge[]
    - `dst_node_id` string
    - `edge_id` string
    - `src_node_id` string
  - `nodes` SerializerAccessGraphNode[]
    - `label` string
    - `metadata` object
    - `node_id` string
    - `resource_id` string
    - `resource_type` 'user' | 'group' | 'service account' | 'policy' | 'socket'
    - `warnings` SerializerWarning[]
      - `args` object
      - `code` string
  - `principal_resource_type` 'user' | 'group' | 'service account' | 'policy' | 'socket'

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/border0/apis/border0-api.md) - [All operations](https://skmtc.dev/border0/apis/border0-api/llms.txt) - [OpenAPI document](https://skmtc.dev/border0/apis/border0-api/revisions/f0ccef7418d8?raw)
