DefaultObjectAccessControls
The DefaultObjectAccessControls resources represent the Access Control Lists (ACLs) applied to a new object within Cloud Storage when no ACL was provided for that object. ACLs let you specify who has access to your data and to what extent.
There are two roles that can be assigned to an entity:
READER
s can get an object, though the acl
property will not be revealed.
OWNER
s are READER
s, and they can get the acl
property, update an object, and call all objectAccessControls methods on the object.
For more information, see Access Control, with the caveat that this API uses READER
and OWNER
instead of READ
and FULL_CONTROL
.
To try out the methods for this resource, see Methods.
Resource representations
{
"kind": "storage#objectAccessControl",
"entity": string,
"role": string,
"email": string,
"entityId": string,
"domain": string,
"projectTeam": {
"projectNumber": string,
"team": string
},
"etag": string
}
Property name |
Value |
Description |
Notes |
domain |
string |
The domain associated with the entity, if any. |
|
email |
string |
The email address associated with the entity, if any. |
|
entity |
string |
The entity holding the permission, in one of the following forms: user-email group-groupId group-email domain-domain project-team-projectId allUsers allAuthenticatedUsers Examples: - The user
liz@example.com would be user-liz@example.com . - The group
example@googlegroups.com would be group-example@googlegroups.com . - To refer to all members of the domain
example.com , the entity would be domain-example.com .
|
writable
|
entityId |
string |
The ID for the entity, if any. |
|
etag |
string |
HTTP 1.1 Entity tag for the access-control entry. |
|
kind |
string |
The kind of item this is. For object access control entries, this is always storage#objectAccessControl . |
|
projectTeam |
object |
The project team associated with the entity, if any. |
|
projectTeam.projectNumber |
string |
The project number. |
|
projectTeam.team |
string |
The team.
Acceptable values are:
- "
editors "
- "
owners "
- "
viewers "
|
|
role |
string |
The access permission for the entity.
Acceptable values are:
|
writable
|
Methods
Buckets in Cloud Storage have an optional default object Access Control List. The methods for working with a bucket's default object access controls are as follows:
- delete
- Permanently deletes the default object ACL entry for the specified entity on the specified bucket.
- get
- Returns the default object ACL entry for the specified entity on the specified bucket.
- insert
- Creates a new default object ACL entry on the specified bucket.
- list
- Retrieves default object ACL entries on the specified bucket.
- patch
- Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
- update
- Updates a default object ACL entry on the specified bucket.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# DefaultObjectAccessControls\n\nThe DefaultObjectAccessControls resources represent the Access Control Lists (ACLs) applied to a new object within Cloud Storage when no ACL was provided for that object. ACLs let you specify who has access to your data and to what extent.\n| **Important:** The methods for this resource fail with a `400 Bad Request` response for buckets with uniform bucket-level access enabled. Use [`storage.buckets.getIamPolicy`](/storage/docs/json_api/v1/buckets/getIamPolicy) and [`storage.buckets.setIamPolicy`](/storage/docs/json_api/v1/buckets/setIamPolicy) to control access instead.\nThere are two roles that can be assigned to an entity: \n\n- `READER`s can [get](/storage/docs/json_api/v1/objects/get) an object, though the `acl` property will not be revealed.\n- `OWNER`s are `READER`s, and they can get the `acl` property, [update](/storage/docs/json_api/v1/objects/update) an object, and call all objectAccessControls methods on the object. \n\nFor more information, see [Access Control](/storage/docs/accesscontrol), with the caveat that this API uses `READER` and `OWNER` instead of `READ` and `FULL_CONTROL`.\n\n\u003cbr /\u003e\n\nTo try out the methods for this resource, see [Methods](#methods).\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```text\n{\n \"kind\": \"storage#objectAccessControl\",\n \"entity\": string,\n \"role\": string,\n \"email\": string,\n \"entityId\": string,\n \"domain\": string,\n \"projectTeam\": {\n \"projectNumber\": string,\n \"team\": string\n },\n \"etag\": string\n}\n```\n\nMethods\n-------\n\nBuckets in Cloud Storage have an optional default object Access Control List. The methods for working with a bucket's default object access controls are as follows:\n\n[delete](/storage/docs/json_api/v1/defaultObjectAccessControls/delete)\n: Permanently deletes the default object ACL entry for the specified entity on the specified [bucket](/storage/docs/json_api/v1/buckets).\n\n[get](/storage/docs/json_api/v1/defaultObjectAccessControls/get)\n: Returns the default object ACL entry for the specified entity on the specified [bucket](/storage/docs/json_api/v1/buckets).\n\n[insert](/storage/docs/json_api/v1/defaultObjectAccessControls/insert)\n: Creates a new default object ACL entry on the specified [bucket](/storage/docs/json_api/v1/buckets).\n\n[list](/storage/docs/json_api/v1/defaultObjectAccessControls/list)\n: Retrieves default object ACL entries on the specified [bucket](/storage/docs/json_api/v1/buckets).\n\n[patch](/storage/docs/json_api/v1/defaultObjectAccessControls/patch)\n: Updates a default object ACL entry on the specified [bucket](/storage/docs/json_api/v1/buckets). This method supports [patch](/storage/docs/json_api#patch) semantics.\n\n[update](/storage/docs/json_api/v1/defaultObjectAccessControls/update)\n: Updates a default object ACL entry on the specified [bucket](/storage/docs/json_api/v1/buckets)."]]