Getting information about an OIDC app in Yandex Identity Hub
- Log in to Yandex Identity Hub
. - In the left-hand panel, select
Apps. - Click the row with the OIDC app you want to get info about.
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 options.
-
View the description of the CLI command to get information about the OIDC app:
yc organization-manager idp application oauth application get --help -
Run this command:
yc organization-manager idp application oauth application get <app_ID>Result:
id: ek0o663g4rs2******** name: oidc-app organization_id: bpf2c65rqcl8******** group_claims_settings: group_distribution_type: NONE client_grant: client_id: ajeqqip130i1******** authorized_scopes: - openid status: ACTIVE created_at: "2025-10-21T10:51:28.790866Z" updated_at: "2025-10-22T11:53:21.689383Z"
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_oauth_application" "app" { application_id = "<app_ID>" } output "my_app_name" { value = data.yandex_organizationmanager_idp_application_oauth_application.app.name } output "my_app_status" { value = data.yandex_organizationmanager_idp_application_oauth_application.app.status } output "my_app_client_id" { value = data.yandex_organizationmanager_idp_application_oauth_application.app.client_grant.client_id }Where:
data "yandex_organizationmanager_idp_application_oauth_application": Description of the OIDC app 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_oauth_applicationdata source properties, see this Terraform provider article. -
Create the resources:
-
In the terminal, go to the directory where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validateIf the configuration is correct, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou 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.
-
Apply the 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.