Getting information about a SAML app in Yandex Identity Hub
- Log in to Yandex Identity Hub
. - In the left-hand panel, select
Apps. - Click the row with the SAML app you want to get info about.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
View the description of the CLI command to get information about the SAML app:
yc organization-manager idp application saml application get --help -
Run this command:
yc organization-manager idp application saml application get <app_ID>Result:
id: ek0o663g4rs2******** name: saml-app organization_id: bpf2c65rqcl8******** group_claims_settings: group_distribution_type: NONE status: ACTIVE created_at: "2025-10-21T10:51:28.790866Z" updated_at: "2025-10-21T12:37:19.274522Z"
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Add the
dataandoutputsections to the Terraform configuration file:data "yandex_organizationmanager_idp_application_saml_application" "saml_app" { application_id = "some_application_id" } output "my_saml_app.name" { value = data.yandex_organizationmanager_idp_application_saml_application.saml_app.name } output "my_saml_app.organization_id" { value = data.yandex_organizationmanager_idp_application_saml_application.saml_app.organization_id } output "my_saml_app.status" { value = data.yandex_organizationmanager_idp_application_saml_application.saml_app.status }Where:
data "yandex_organizationmanager_idp_application_saml_application": SAML app description as a data source:application_id: App ID.
output: Output variables containing the app info:value: Return value.
You can replace these parameters with any others to get the information you need. For more information about the
yandex_organizationmanager_idp_application_saml_applicationdata source properties, see this Terraform provider guide. -
Create the resources:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will create the required resources and display their output variables. To check the results, run this command:
terraform output -
Use the Application.Get REST API method for the Application resource or the ApplicationService/Get gRPC API call.