Report this

What is the reason for this report?

Spaces/buckets ACL: what is the ID of a user and where can I find them?

Posted on May 18, 2018

Hi there!

I’m new to Object Storage. I’m trying to set ACL on a bucket, following this documentation.

But I don’t know what is this ID, since it is not an accessKey, and there is no mention of my own ID anywhere on the website.

Also, why the DisplayName is the same than this ID?

Here is the output of a .getBucketAcl() done with the AWS SDK:

{
  "Owner": {
    "DisplayName": "2802192",
    "ID": "2802192"
  },
  "Grants": [
    {
      "Grantee": {
        "DisplayName": "2802192",
        "ID": "2802192",
        "Type": "CanonicalUser"
      },
      "Permission": "FULL_CONTROL"
    }
  ]
}

How can I grant some permission to someone else by space access key?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

In DigitalOcean when you create a Space it has an ID and the original account that created the space is the Owner, for compatibility purposes these IDs will match and use ID#'s in DisplayName rather than a Canonical or expected name of the owner.

So that is expected behavior and you can read up a bit on it here: https://developers.digitalocean.com/documentation/spaces/#list-all-buckets

In regards to your question, you can add additional users with specific permissions by following this guide: https://www.digitalocean.com/docs/spaces/how-to/administrative-access/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.