This operation is not supported by directory buckets.
Returns the access control list (ACL) of an object. To use this operation, you must have
s3:GetObjectAcl permissions or READ_ACP access to the object.
For more information, see Mapping of ACL permissions and access policy permissions in the Amazon S3
User Guide
This functionality is not supported for Amazon S3 on Outposts.
By default, GET returns ACL information about the current version of an object. To
return ACL information about a different version, use the versionId subresource.
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.
The following operations are related to GetObjectAcl:
This operation is not supported by directory buckets.
Returns the access control list (ACL) of an object. To use this operation, you must have
s3:GetObjectAcl
permissions orREAD_ACP
access to the object. For more information, see Mapping of ACL permissions and access policy permissions in the Amazon S3 User GuideThis functionality is not supported for Amazon S3 on Outposts.
By default, GET returns ACL information about the current version of an object. To return ACL information about a different version, use the versionId subresource.
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.The following operations are related to
GetObjectAcl
:GetObject
GetObjectAttributes
DeleteObject
PutObject
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetObjectAclCommandInput
Returns
GetObjectAclCommandOutput
See
input
shape.response
shape.config
shape.Throws
NoSuchKey (client fault)
The specified key does not exist.
Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example
To retrieve object ACL