Share an Object and a Bucket
To share an object, you use access control lists(ACLs). To set the ACL of an object, you must have the WRITE_ACP permission for the object.
Depending on your application
architecture and needs, you can set the ACLs using the request headers or the body of
the request.
When setting access permissions, you can use predefined ACL and specify
the type with the
x-amz-acl
header, or explicitly specify the
permissions you grant with the following headers:x-amz-grant-read
x-amz-grant-read-acp
x-amz-grant-write-acp
x-amz-grant-full-control
To grant permissions, you specify the grantee of the permission as a
type-value pair. Following are the available grantee types:
- To use the user name of an organization user, use the
id
type. - To grant permissions to a predefined group, use the
uri
type.
For more information about working with ACLs, see https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html.
Following the steps in the current procedure, you assign the Read of Object, the Write of Object, and the Write of Bucket permissions to an organization user. Then assign Public Read permissions for the object.
Prerequisites
- Verify that you created an object in a bucket. For example, report_dec.xlsx, in the Reports bucket.
- Verify that you have WRITE_ACP permissions for the report_dec.xlsx object and for the Reports bucket.