Deleting an identity federation
Note
To delete an identity federation, the user must have the organization-manager.organizations.owner role.
To delete an identity federation:
- Log in to Cloud Center
with an administrator or organization owner account. - In the left-hand panel, select
Federations. - Next to the identity federation, click
and select Delete. - In the window that opens, confirm the deletion.
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.
-
See the description of the command for deleting a Yandex Identity Hub user group:
yc organization-manager federation saml delete --help -
Get a list of federations in the organization:
yc organization-manager federation saml list \ --organization-id <organization_ID>Where
--organization-idis the ID of the organization you need the list of federations for. -
To delete an identity federation, run this command:
yc organization-manager federation saml delete <federation_name_or_ID>
Use the Federation.delete REST API method for the Federation resource or the FederationService/Delete gRPC API call.
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the guides on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.
-
In the configuration that manages the federation, remove the
yandex_organizationmanager_saml_federationresource section for the federation, along with its associated references. For more information on the resource, see this provider guide. -
Apply the changes:
-
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.
Before confirming, verify that the plan deletes the federation and only the expected associated resources.
-