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 action is not supported by Amazon S3 on Outposts.
Versioning
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:
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 action is not supported by Amazon S3 on Outposts.
Versioning
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
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetObjectAclCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetObjectAclCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetObjectAclCommand(input); const response = await client.send(command);
GetObjectAclCommandInput for command's
input
shape.GetObjectAclCommandOutput for command's
response
shape.config for S3Client's
config
shape.