serviceAccount
Fetch a single service account by id. Requires the organization:manageServiceAccounts action.
graphql
serviceAccount(
organizationId: ID!
id: UUID!
): ServiceAccount
Argumentsโ
serviceAccount.organizationIdย โย ID! non-null scalar {#organization-id}โ
Your organization's unique identifier.
serviceAccount.idย โย UUID! non-null scalar {#id}โ
The service account's unique identifier.
Typeโ
ServiceAccount objectโ
A non-human identity for programmatic API access.
Service accounts let you integrate CI/CD pipelines, scripts, and external tools with the
Massdriver API. They authenticate using access tokens โ issue one with createServiceAccountAccessToken
and pass it as a bearer token on API requests.
Permissions โ Service accounts have no inherent permissions. Add them to groups to grant
access, using the same role model as human users. A service account in the Admins group
has the same access as a human admin.
Lifecycle:
- Create the service account.
- Add the service account to one or more groups to grant access.
- Issue one or more access tokens for the service account via
createServiceAccountAccessToken. The raw token value is only shown once at creation โ store it securely before navigating away. - Delete the service account when it is no longer needed. This immediately revokes all access, including any active access tokens.