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
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex DataSphere
  • Getting started
    • All guides
      • Authentication in DataSphere Jobs
      • Running a job in DataSphere Jobs
      • Working with jobs from Visual Studio Code
      • Using results of completed jobs
      • Working with a service agent from a job
    • 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. DataSphere Jobs
  3. Authentication in DataSphere Jobs

Authentication in DataSphere Jobs

Written by
Yandex Cloud
Updated at March 6, 2025

To use DataSphere Jobs, you need to authenticate as a user account.

Yandex account
Federated account
  1. Get an OAuth token.

  2. Specify the OAuth token in one of two ways:

    • Using the YC_TOKEN or YC_OAUTH_TOKEN environment variables in the ~/.bash_profile configuration file (~/.bashrc for Linux).

      The OAuth token will be saved in the profile configuration and authentication will be automatic.

    • Using DataSphere CLI and the -t option, e.g.:

      datasphere -t <OAuth_token> project job get --id <project_ID>
      

      To copy the project ID, select the project on the DataSphere homepage and click ID .

      In this case, you will have to specify the OAuth token in each command.

To authenticate federated accounts, install and configure the Yandex CLI. You cannot run a job as a federated account on a local computer without a graphical shell: the Yandex CLI will redirect your request to the browser for authentication.

Was the article helpful?

Previous
Sending a request to an alias
Next
Running a job in DataSphere Jobs
© 2025 Direct Cursus Technology L.L.C.