将Google云端存储ID与用户电子邮件地址相匹配(Matching Google Cloud Storage ID to a user email address)

我正在寻找一种方法来确定谁将文件上传到云存储桶。 所有有权写入存储桶的用户都是同一G Suite域中的经过身份验证的用户。

云存储中的对象ACL显示所有者标识符字符串,如下所示:

{ "entity": "user-84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "entityId": "84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "role": "OWNER" }

但是,似乎没有一种简单的方法可以将此ID映射回用户的电子邮件地址(或确定我知道其电子邮件的用户的云存储ID,除非使用该用户帐户上传文件和查询对象ACL)。

这是真的? 或者我只是没有看到这样做的方式?

感谢您的帮助!

I'm looking for a way to determine who uploaded a file to a Cloud Storage bucket. All of the users with access to write to the bucket are authenticated users in the same G Suite domain.

The object ACL in Cloud Storage shows an owner identifier string which looks like the following:

{ "entity": "user-84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "entityId": "84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "role": "OWNER" }

However, it does not appear that there is an easy way to map this ID back to a user's email address (or to determine the Cloud Storage ID for a user whose email I know, except by using that user account to upload a file and querying the object ACL).

Is this true? Or am I just not seeing the way to do this?

Thank you for the help!

最满意答案

尝试再次获取ACL。 我今天刚刚尝试了07/05/2017,并且返回的ACL包含了电子邮件地址。 Google会更新API,将旧的Google云端存储ID替换为用户的电子邮件地址。

{ "email": "email@domain.com", "entity": "user-email@domain.com", "role": "OWNER" }

Try getting the ACLs again. I just tried today 07/05/2017 and the returned ACLs included email address. It would appear Google has updated the API, replacing the old Google Cloud Storage ID with the user's email address.

{ "email": "email@domain.com", "entity": "user-email@domain.com", "role": "OWNER" }将Google云端存储ID与用户电子邮件地址相匹配(Matching Google Cloud Storage ID to a user email address)

我正在寻找一种方法来确定谁将文件上传到云存储桶。 所有有权写入存储桶的用户都是同一G Suite域中的经过身份验证的用户。

云存储中的对象ACL显示所有者标识符字符串,如下所示:

{ "entity": "user-84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "entityId": "84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "role": "OWNER" }

但是,似乎没有一种简单的方法可以将此ID映射回用户的电子邮件地址(或确定我知道其电子邮件的用户的云存储ID,除非使用该用户帐户上传文件和查询对象ACL)。

这是真的? 或者我只是没有看到这样做的方式?

感谢您的帮助!

I'm looking for a way to determine who uploaded a file to a Cloud Storage bucket. All of the users with access to write to the bucket are authenticated users in the same G Suite domain.

The object ACL in Cloud Storage shows an owner identifier string which looks like the following:

{ "entity": "user-84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "entityId": "84fac329bceSAMPLE777d5d22b8SAMPLE77d85ac2SAMPLE2dfcf7c4adf34da46", "role": "OWNER" }

However, it does not appear that there is an easy way to map this ID back to a user's email address (or to determine the Cloud Storage ID for a user whose email I know, except by using that user account to upload a file and querying the object ACL).

Is this true? Or am I just not seeing the way to do this?

Thank you for the help!

最满意答案

尝试再次获取ACL。 我今天刚刚尝试了07/05/2017,并且返回的ACL包含了电子邮件地址。 Google会更新API,将旧的Google云端存储ID替换为用户的电子邮件地址。

{ "email": "email@domain.com", "entity": "user-email@domain.com", "role": "OWNER" }

Try getting the ACLs again. I just tried today 07/05/2017 and the returned ACLs included email address. It would appear Google has updated the API, replacing the old Google Cloud Storage ID with the user's email address.

{ "email": "email@domain.com", "entity": "user-email@domain.com", "role": "OWNER" }