Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Service page
Yandex Identity and Access Management
Documentation
Yandex Identity and Access Management
    • All guides
    • Handling secrets that are available in the public domain
      • Creating a service account
      • Viewing the folder's service accounts
      • Updating a service account
      • Assigning roles to a service account
      • Setting up service account access permissions
      • Getting information about a service account
      • Getting an ID token for a service account
      • Deleting a service account
  • Secure use of Yandex Cloud
  • Access management
  • Pricing policy
  • Role reference
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Service accounts
  3. Viewing the folder's service accounts

Getting a list of the folder's service accounts

Written by
Yandex Cloud
Updated at July 23, 2025

You can get a list of all service accounts available in the folder.

Management console
CLI
API
  1. In the management console, navigate to the folder whose list of service accounts you want to get.
  2. In the list of services, select Identity and Access Management.
  3. In the left-hand panel, select Service accounts.
  4. The Service accounts page will display a list of all the folder's service accounts.

List of service accounts

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

Get a list of service accounts in the default folder:

yc iam service-account list

Result:

+----------------------+--------------+--------+---------------------+-----------------------+
|          ID          |     NAME     | LABELS |     CREATED AT      | LAST AUTHENTICATED AT |
+----------------------+--------------+--------+---------------------+-----------------------+
| ajeg2b2et02f******** | my-robot     |        | 2024-09-08 18:59:45 | 2025-02-18 10:10:00   |
| ajegtlf2q28a******** | account-name |        | 2023-06-27 16:18:18 | 2025-02-18 10:20:00   |
+----------------------+--------------+--------+---------------------+-----------------------+

Where:

  • ID: Service account ID.
  • NAME: Service account name.
  • LABELS: Service account description.
  • CREATED AT: Service account creation date and time.
  • LAST AUTHENTICATED AT: Last authentication date and time.
  1. Find out the ID of the folder whose list of service accounts you want to view.

  2. Get a list of service accounts in the folder using the list REST API method for the ServiceAccount resource:

    export FOLDER_ID=b1gvmob95yys********
    export IAM_TOKEN=CggaATEVAgA...
    curl \
      --header "Authorization: Bearer ${IAM_TOKEN}" \
      "https://iam.api.cloud.yandex.net/iam/v1/serviceAccounts?folderId=${FOLDER_ID}"
    

    Result:

    {
     "serviceAccounts": [
      {
       "id": "ajeg2b2et02f********",
       "folderId": "b1gvmob95yys********",
       "createdAt": "2024-09-08T18:59:45Z",
       "name": "my-robot",
       "lastAuthenticatedAt": "2025-02-18T10:10:00Z"
      },
      {
       "id": "ajegtlf2q28a********",
       "folderId": "b1gvmob95yys********",
       "createdAt": "2023-06-27T16:18:18Z",
       "name": "account-name",
       "lastAuthenticatedAt": "2025-02-18T10:20:00Z"
      }
     ]
    }
    

    You can also get a list of service accounts in a folder using the ServiceAccountService/List gRPC API call.

Was the article helpful?

Previous
Creating a service account
Next
Updating a service account
© 2025 Direct Cursus Technology L.L.C.