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 for business
    • 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.
Yandex Identity Hub
    • All guides
    • Subscribing a user to notifications
        • Creating an app
        • Updating an app
        • Setting up access for app users
        • Getting a list of apps
        • Getting app information
        • Deactivating and deleting an app
    • Syncing users and groups with Active Directory
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing apps (SSO)
  3. OIDC apps
  4. Setting up access for app users

Setting up access for OIDC app users in Yandex Identity Hub

Written by
Yandex Cloud
Updated at November 25, 2025

To grant access to an OIDC app, assign roles to subjects. Learn what roles the service has and assign the required ones.

CLI

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.

  1. See the description of the CLI command for assigning roles to OIDC app users:

    yc organization-manager idp application oauth application set-access-bindings --help
    
  2. Get a list of OIDC apps and their IDs:

    yc organization-manager idp application oauth application list --organization-id <organization_ID>
    

    Where --organization-id is the ID of the organization you need the list of OIDC apps for.

  3. Get the ID of the user, service account, or user group you are assigning roles to.

  4. Using the yc organization-manager idp application oauth application set-access-bindings command, assign the following roles:

    • To a Yandex account user or local user:

      yc organization-manager idp application oauth application set-access-bindings \
        --id <app_ID> \
        --access-binding role=<role>,user-account-id=<user_ID>
      
    • To a federated user:

      yc organization-manager idp application oauth application set-access-bindings \
        --id <app_ID> \
        --access-binding role=<role>,subject=federatedUser:<user_ID>
      
    • To a service account:

      yc organization-manager idp application oauth application set-access-bindings \
        --id <app_ID> \
        --access-binding role=<role>,service-account-id=<service_account_ID>
      
    • To a user group:

      yc organization-manager idp application oauth application set-access-bindings \
        --id <app_ID> \
        --access-binding role=<role>,subject=group:<group_ID>
      
    • To all authenticated users (the All authenticated users public group):

      yc organization-manager idp application oauth application set-access-bindings \
        --id <app_ID> \
        --access-binding role=<role>,all-authenticated-users
      

    Provide a separate --access-binding parameter for each role. Here is an example:

    yc organization-manager idp application oauth application set-access-bindings \
      --id <app_ID> \
      --access-binding role=<role1>,service-account-id=<service_account_ID> \
      --access-binding role=<role2>,service-account-id=<service_account_ID> \
      --access-binding role=<role3>,service-account-id=<service_account_ID>
    

Was the article helpful?

Previous
Updating an app
Next
Getting a list of apps
© 2025 Direct Cursus Technology L.L.C.