GetBucketAcl - Amazon Simple Storage Service Archived: 2026-04-05 17:50:24 UTC Note This operation is not supported for directory buckets. This implementation of the GET action uses the acl subresource to return the access control list (ACL) of a bucket. To use GET to return the ACL of the bucket, you must have the READ_ACP access to the bucket. If READ_ACP permission is granted to the anonymous user, you can return the ACL of the bucket without using an authorization header. When you use this API operation with an access point, provide the alias of the access point in place of the bucket name. When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code InvalidAccessPointAliasError is returned. For more information about InvalidAccessPointAliasError , see List of Error Codes. Note If your bucket uses the bucket owner enforced setting for S3 Object Ownership, requests to read ACLs are still supported and return the bucket-owner-full-control ACL with the owner being the account that created the bucket. For more information, see Controlling object ownership and disabling ACLs in the Amazon S3 User Guide. Important You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt , containing two spaces after my , you must URL encode this value to my%20%20file.txt . The following operations are related to GetBucketAcl : ListObjects Request Syntax GET /?acl HTTP/1.1 Host: Bucket .s3.amazonaws.com x-amz-expected-bucket-owner: ExpectedBucketOwner https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html Page 1 of 4 URI Request Parameters The request uses the following URI parameters. Bucket Specifies the S3 bucket whose ACL is being requested. When you use this API operation with an access point, provide the alias of the access point in place of the bucket name. When you use this API operation with an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code InvalidAccessPointAliasError is returned. For more information about InvalidAccessPointAliasError , see List of Error Codes. Required: Yes x-amz-expected-bucket-owner The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied). Request Body The request does not have a request body. Response Syntax HTTP/1.1 200 string string string string string string string string https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html Page 2 of 4 Response Elements If the action is successful, the service sends back an HTTP 200 response. The following data is returned in XML format by the service. AccessControlPolicy Root level tag for the AccessControlPolicy parameters. Required: Yes Grants A list of grants. Type: Array of Grant data types Owner Container for the bucket owner's ID. Type: Owner data type Examples Sample Request The following request returns the ACL of the specified bucket. GET ?acl HTTP/1.1 Host: bucket.s3..amazonaws.com Date: Wed, 28 Oct 2009 22:32:00 GMT Authorization: authorization string Sample Response HTTP/1.1 200 OK x-amz-id-2: eftixk72aD6Ap51TnqcoF8eFidJG9Z/2mkiDFu8yU9AS1ed4OpIszj7UDNEHGran x-amz-request-id: 318BC8BC148832E5 Date: Wed, 28 Oct 2009 22:32:00 GMT Last-Modified: Sun, 1 Jan 2006 12:00:00 GMT Content-Length: 124 https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html Page 3 of 4 Content-Type: text/plain Connection: close Server: AmazonS3 75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a 75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a FULL_CONTROL See Also For more information about using this API in one of the language-specific AWS SDKs, see the following: AWS Command Line Interface V2 AWS SDK for .NET V4 AWS SDK for C++ AWS SDK for Go v2 AWS SDK for Java V2 AWS SDK for JavaScript V3 AWS SDK for Kotlin AWS SDK for PHP V3 AWS SDK for Python AWS SDK for Ruby V3 Source: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html Page 4 of 4