serviceAccounts
List the service accounts in your organization.
Returns a cursor-paginated list. Use filter to narrow by id or to search across each
service account's name and description. Use sort to control ordering (defaults to name
ascending; relevance ranking is used instead when search is active and no sort is given).
Requires organization_admin permissions.
query {
serviceAccounts(organizationId: "my-org", filter: { search: "deploy" }) {
items { id name description createdAt }
cursor { next }
}
}
Note: when a search filter is active, pagination cursors are offset-based and are
not interchangeable with the keyset cursors returned by non-search queries.
serviceAccounts(
organizationId: ID!
filter: ServiceAccountsFilter
sort: ServiceAccountsSort
cursor: Cursor
): ServiceAccountsPage
Arguments
serviceAccounts.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
serviceAccounts.filter ● ServiceAccountsFilter input {#filter}
Narrow results by id or full-text search.
serviceAccounts.sort ● ServiceAccountsSort input {#sort}
Explicit sort order. Defaults to name ascending. When a search filter is active and no sort is provided, results are ranked by relevance.
serviceAccounts.cursor ● Cursor input {#cursor}
Cursor from a previous page's cursor.next or cursor.previous.