Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Access permissions

This section demonstrates how to manage the access permissions for an S3 bucket or object by using an access control list (ACL).

Get a bucket access control list

The example retrieves the current access control list of an S3 bucket.

import boto3

# Retrieve a bucket's ACL
s3 = boto3.client('s3')
result = s3.get_bucket_acl(Bucket='my-bucket')
print(result)