Question

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

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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/