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

May 18, 2018 1.2k views
Object Storage

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?

1 Answer

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/

Have another answer? Share your knowledge.