View a markdown version of this page

Registering a delegated administrator for Amazon S3 Storage Lens for Tables - Amazon Simple Storage Service

Registering a delegated administrator for Amazon S3 Storage Lens for Tables

You can create organization-level dashboards by using your organization’s management account or delegated administrator accounts. Delegated administrator accounts allow other accounts besides your management account to create organization-level dashboards. Only the management account of an organization can register and deregister other accounts as delegated administrators for the organization.

After enabling trusted access, you can register delegated administrator access to accounts in your organization by using the AWS Organizations AWS Management Console, REST API, AWS CLI, or AWS SDKs from the management account. (For more information, see RegisterDelegatedAdministrator in the AWS Organizations API Reference.) When an account is registered as a delegated administrator, the account receives authorization to access all read-only AWS Organizations API operations. This provides visibility to the members and structures of your organization so that they can create Amazon S3 Storage Lens for Tables dashboards on your behalf.

Note

Before you can designate a delegated administrator by using the AWS Organizations REST API, AWS CLI, or SDKs, you must call the EnableAWSServiceAccess operation.

Note

You must enable AWS Organizations trusted access before you can register a delegated administrator. You must be signed in to the organization's management account.

To register a delegated administrator for Amazon S3 Storage Lens for Tables
  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. Open the Account and organization settings page.

  3. In the Delegated Administrators section, choose Register account.

  4. On the Register delegated administrator for Storage Lens page, for AWS account ID, enter the 12-digit ID of the member account that you want to register.

  5. Choose Register account.

Example

The following example shows you how to register Organizations delegated administrators for Amazon S3 Storage Lens for Tables using the AWS CLI. To use this example, replace the user input placeholders with your own information.

aws organizations register-delegated-administrator --service-principal storage-lens.s3.amazonaws.com --account-id 111122223333
Example– Register Organizations delegated administrators for Amazon S3 Storage Lens for Tables

The following example shows you how to register AWS Organizations delegated administrators for Amazon S3 Storage Lens for Tables in SDK for Java. To use this example, replace the user input placeholders with your own information.

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.RegisterDelegatedAdministratorRequest; import software.amazon.awssdk.services.organizations.model.OrganizationsException; import software.amazon.awssdk.core.exception.SdkClientException; public class RegisterOrganizationsDelegatedAdministrator { 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.registerDelegatedAdministrator(RegisterDelegatedAdministratorRequest.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(); } } }