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)