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
      • Overview
      • Configuring an identity federation
      • Configuring a federated user group mapping
      • Renewing a Yandex Cloud SAML certificate
      • Setting up a domain in an identity federation
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing identity federations
  3. Configuring a federated user group mapping

Configuring a federated user group mapping

Written by
Yandex Cloud
Updated at November 5, 2025

To configure user access to Yandex Cloud resources using group mapping:

  1. Create user groups in Identity Hub.

  2. Configure their access permissions to Yandex Cloud resources.

  3. Create user groups in your identity provider and add users to them.

    Note

    You can use existing user groups.

  4. Set up user group mapping in the identity provider's SAML attribute settings. To learn how to do this, consult the identity provider's documentation or contact their support.

    Identity providers offer guides on how to set up group mapping:

    • Keycloak.
    • Microsoft Active Directory Federation Services.
    • Microsoft Entra ID.
    • Google.
  5. Set up user group mapping in the federation settings:

    Note

    To configure user group mapping on the Yandex Cloud side, assign the user one of the following roles:

    • organization-manager.federations.editor
    • organization-manager.federations.admin
    • organization-manager.editor
    • organization-manager.admin

    The role must be assigned for the groups you intend to map.

    Cloud Center UI
    Terraform
    1. Log in to Yandex Identity Hub with an administrator or organization owner account.

    2. In the left-hand panel, select Federations.

    3. Click the line with the required federation and go to the IdP group tab.

    4. Enable Mapping group in IdP.

    5. Click Add group and configure mapping:

      • Group name: Enter the name of an identity provider group.
      • IAM group: Select a Identity Hub group from the list.
    6. Repeat the previous step for each group you want to map.

    7. Click Save.

    With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

    Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

    For more information about the provider resources, see the relevant documentation on the Terraform website or its mirror.

    If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

    1. In the Terraform configuration file, describe the resources you want to create:

      # Enabling federated user group mapping
      
      resource "yandex_organizationmanager_group_mapping" "my_group_map" {
       federation_id = "<federation_ID>"
       enabled       = true
      }
      
      # Configuring a federated user group mapping
      
      resource "yandex_organizationmanager_group_mapping_item" "group_mapping_item" {
        federation_id     = "<federation_ID>"
        internal_group_id = "<Cloud_Organization_group>"
        external_group_id = "<identity_provider_group>"
      
      depends_on = [yandex_organizationmanager_group_mapping.my_group_map]
      }
      
      resource "yandex_organizationmanager_group_mapping_item" "group_mapping_item-2" {
        federation_id     = "<federation_ID>"
        internal_group_id = "<Cloud_Organization_group>"
        external_group_id = "<identity_provider_group>"
      
      depends_on = [yandex_organizationmanager_group_mapping.my_group_map]
      }
      

      Where:

      • federation_id: Federation ID.
      • internal_group_id: Identity Hub group name.
      • external_group_id: Name of an identity provider group.

      For more information about yandex_organizationmanager_group_mapping_item properties, see the relevant provider documentation.

    2. Create the resources:

      1. In the terminal, go to the directory where you edited the configuration file.

      2. Make sure the configuration file is correct using this command:

        terraform validate
        

        If the configuration is correct, you will get this message:

        Success! The configuration is valid.
        
      3. Run this command:

        terraform plan
        

        You will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.

      4. Apply the changes:

        terraform apply
        
      5. Type yes and press Enter to confirm the changes.

      Terraform will create all the required resources. You can check resource availability in Yandex Identity Hub.

Was the article helpful?

Previous
Configuring an identity federation
Next
Renewing a Yandex Cloud SAML certificate
© 2025 Direct Cursus Technology L.L.C.