download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

Amazon S3 - How to Set Permissions on Versioned Object (PUT Object ACL on Object Version)?

To grant access on S3 Version object , you can set access control list (ACL) permissions for the object stored in Amazon S3 Bucket using PUT Object ACL REST API. You can set the ACL of an object on the object version level. PUT Object ACL request sets the ACL of the latest version of an object. You can use versionID subresource to be able to set the ACL of a different version.
To authenticate the request, you need to have WRITE_ACP permission.

Update ACLs on versions of objects using REST API
To update ACLs on versions of objects you can request PUT Object ACL. With that, Amazon S3 returns the version ID of the object in x-amz-version-id response header in the response. Here, x-amz-version-id is the version of the object whose ACL is being set.

Syntax:

PUT /my-image.jpg?acl&versionId=3HL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nrjfkd HTTP/1.1
Host: bucket.s3.amazonaws.com
Date: Wed, 28 Oct 2009 22:32:00 GMT
Authorization: AWS AKIAIOSFODNN7EXAMPLE:xQE0diMbLRepdf3YB+FIEXAMPLE=
Content-Length: 124

<AccessControlPolicy>
<Owner>
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>
<DisplayName>mtd@amazon.com</DisplayName>
</Owner>
<AccessControlList>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>
<DisplayName>mtd@amazon.com</DisplayName>
</Grantee>
<Permission>FULL_CONTROL</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>
 

Update ACLs on versions of objects using Bucket Explorer

Bucket Explorer has a feature that allows updating ACL on Amazon S3 version object(s). Using this feature, you can update ACL for all version objects of Bucket or selected version objects. The process of updating ACL on more than one object is performed in queue so you can see the statistics of the process. When you update ACL for a single version object, the queue will not be shown.

Update Amazon S3 ACL for version objects of a Bucket:

  1. Run Bucket Explorer.
  2. All Buckets will be listed.
  3. Select a Bucket on which you have set S3 versioning.
  4. Right click on the Bucket and select “List All Version” option.
  5. It will list all version objects.
  6. Select object(s) from object list table and choose any one of the following option to update ACL:
    Click on “Batch Operation” icon -> “Update ACL” in object toolbar.
    OR
    Right click on objects and select “Update File’s Access Control List” .
    OR
    Click on “ACL(s)” button in object toolbar.
  1. It will open Update ACL window.
  2. Set permissions as per your requirement to update Amazon S3 ACL.
  3. Click on “Update ACL” button. It will start Queue with selected objects of the specified Bucket.
  4. When the queue processes is finished, it will show the statistics report for the status of the process.
Note:
  • You cannot update the ACL on a delete marked version object.
  • You can also perform this operation using Transfer Panel.