Deregistering a delegated administrator for Amazon S3 Storage Lens for Tables
After enabling trusted access, you can also deregister delegated administrator access to accounts in your organization. Delegated administrator accounts allow other accounts besides your management account to create organization-level dashboards. Only the management account of an organization can deregister accounts as delegated administrators for the organization.
You can deregister a delegated administrator by using the AWS Organizations AWS Management Console, REST API, AWS CLI, or AWS SDKs from the management account. For more information, see DeregisterDelegatedAdministrator in the AWS Organizations API Reference.
When an account is deregistered as a delegated administrator, the account loses access to the following:
-
All read-only AWS Organizations API operations that provide visibility to the members and structures of your organization.
-
All organization-level dashboards created by the delegated administrator. Deregistering a delegated administrator also automatically stops all organization-level dashboards created by that delegated administrator from aggregating new storage metrics.
NoteThe deregistered delegated administrator can still view existing metrics for the disabled dashboards that they created until the metrics age out: 14 days for free tier metrics and 15 months for advanced tier metrics.
To deregister a delegated administrator for Amazon S3 Storage Lens for Tables
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
. -
Open the Account and organization settings page.
-
In the Delegated Administrators section, select the account that you want to deregister.
-
Choose De-register account.
-
In the confirmation dialog box, enter the account ID to confirm, and then choose De-register account.
Example
The following example shows you how to deregister Organizations delegated administrators for
Amazon S3 Storage Lens for Tables using the AWS CLI. To use this example, replace
with your own AWS account
ID.111122223333
aws organizations deregister-delegated-administrator --service-principal storage-lens.s3.amazonaws.com --account-id111122223333
Example– Deregister Organizations delegated administrators for Amazon S3 Storage Lens for Tables
The following example shows you how to deregister Organizations delegated administrators for
Amazon S3 Storage Lens for Tables using SDK for Java. To use this example, replace the
with your own
information.user input placeholders
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.organizations.OrganizationsClient; import software.amazon.awssdk.services.organizations.model.DeregisterDelegatedAdministratorRequest; import software.amazon.awssdk.services.organizations.model.OrganizationsException; import software.amazon.awssdk.core.exception.SdkClientException; public class DeregisterOrganizationsDelegatedAdministrator { private static final String S3_STORAGE_LENS_TABLES_SERVICE_PRINCIPAL = "storage-lens.s3.amazonaws.com"; public static void main(String[] args) { String delegatedAdminAccountId = "111122223333"; // Account Id for the delegated administrator. try (OrganizationsClient organizationsClient = OrganizationsClient.builder() .credentialsProvider(ProfileCredentialsProvider.create()) .region(Region.US_EAST_1) .build()) { organizationsClient.deregisterDelegatedAdministrator(DeregisterDelegatedAdministratorRequest.builder() .accountId(delegatedAdminAccountId) .servicePrincipal(S3_STORAGE_LENS_TABLES_SERVICE_PRINCIPAL) .build()); } catch (OrganizationsException e) { // The call was transmitted successfully, but AWS Organizations couldn't process // it and returned an error response. e.printStackTrace(); } catch (SdkClientException e) { // AWS Organizations couldn't be contacted for a response, or the client // couldn't parse the response from AWS Organizations. e.printStackTrace(); } } }