Why am I getting the error “The request contained an unsupported argument.” when I add an account to my Amazon S3 bucket’s ACL?

1 minute read
0

I'm trying to add an account to my Amazon Simple Storage Service (Amazon S3) bucket's access control list (ACL). I receive the error "The request contained an unsupported argument." How do I troubleshoot this?

Short description

I'm trying to add another AWS account to the access control list (ACL) of my Amazon S3 bucket by specifying an email address. I'm getting the error "The request contained an unsupported argument", even though I verified that the email address is correct. How can I fix this?

Resolution

Enter the account's canonical user ID instead of the account email address. For instructions on retrieving the canonical ID, see Finding your account canonical user ID.

If your bucket is in a newer AWS Region, then enter the canonical user ID to be sure that it maps to the account. For more information about AWS Regions, see Global Infrastructure.

Note: It's a best practice to keep ACL deactivated and to use S3 Object Ownership to take ownership of every object in your bucket.


Related information

Configuring ACLs

AWS OFFICIAL
AWS OFFICIALUpdated a year ago