Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex DataSphere
  • Getting started
    • All guides
      • Creating a community
      • Adding a user to a community
      • Managing community labels
      • Managing community restrictions
      • Creating a service agent
      • Adding a link for a community
      • Linking a billing account
      • Viewing a cost breakdown report
      • Deleting a community
      • Removing a user from a community
    • Migrating a workflow to a new version
  • Terraform reference
  • Audit Trails events
  • Access management
  • Pricing policy
  • Public materials
  • Release notes
  1. Step-by-step guides
  2. Community management
  3. Creating a service agent

Creating a service agent

Written by
Yandex Cloud
Updated at April 11, 2025

With a service agent, you will be able to work with other services, e.g., refresh your authorization tokens for DataSphere notebooks.

A service agent is a special service account under which DataSphere projects will perform actions in other Yandex Cloud services. Once enabled in a community, a service agent will be available for all the projects in that community.

You can also manage a service agent from DataSphere Jobs.

Note

To enable a service agent in a DataSphere community, you need the datasphere.communities.editor role or higher.

You need the admin or owner role for the cloud to manage service access to resources.

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

  1. To allow a service agent to operate in DataSphere, ask your cloud admin or owner to run the following command in the Yandex Cloud CLI:

    yc iam service-control enable datasphere --cloud-id <cloud_ID>
    

    Where --cloud-id is the ID of the cloud you are going to use in the DataSphere community.

  2. Create a service account and assign to it the roles required to use the selected service. For more information about the required roles, see Access management for the service in question.

    To send requests to nodes from a notebook, assign the datasphere.user role to the service account.

  3. Open the DataSphere home page. In the left-hand panel, select Communities.

  4. Select the community you want to create a service agent for.

  5. Go to the Settings tab.

  6. Under Service agent, click Add service account.

  7. In the window that opens, select the service account and click Add.

Note

To manage a community via the API, add the service account to the community member list. To send requests to a node from a notebook or access a project via the API, add the service account to the community and project member lists.

Was the article helpful?

Previous
Managing community restrictions
Next
Adding a link for a community
Yandex project
© 2025 Yandex.Cloud LLC