---
title: "Retrieve Service Account status for current org"
method: GET
path: "/v2/org/{org}/nico/service-account/current"
tags: ["Service Account"]
---

# Retrieve Service Account status for current org

`GET /v2/org/{org}/nico/service-account/current`

Retrieve Service Account status for current org

API service must be configured for Service Account access at the time of deployment. It cannot be enabled or disabled via API.

## Response `200`

OK

- ServiceAccount — Describes Service Account status and related entities
  - `enabled` boolean — Indicates whether the calling token is authenticated as a Service Account. This is determined per request from how the token's issuer is configured at deployment time (the issuer config in the `nico-rest-api-config` ConfigMap); it cannot be toggled via the API. Rules by issuer origin: - `keycloak`: true for a client-credentials (service-to-service) token — i.e. the token carries a client ID — when the issuer is deployed with `keycloak.serviceAccount: true`. - `custom`: true when the `claimMapping` matched for this org sets `isServiceAccount: true`. Only permitted when the API runs in disconnected mode. - `kas-ssa` / `kas-legacy`: always false; service accounts are not supported for these origins. For details on issuer origins and configuration, see the NICo REST `auth` module [README](https://github.com/NVIDIA/infra-controller/tree/main/rest-api/auth).
  - `infrastructureProviderId` string, uuid, nullable — ID of the Infrastructure Provider associated with Service Account
  - `tenantId` string, uuid, nullable — ID of the Tenant associated with Service Account

## Other responses

- `403` — Error response when user is not authorized to call an endpoint or retrieve/modify objects

---

[API](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api.md) · [All operations](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nvidia/nvidia-infra-controller-rest-api/revisions/c4290aa37b46/schema)
