Stay organized with collections
Save and categorize content based on your preferences.
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:
READERs can get an object, though the acl property will not be revealed.
OWNERs are READERs, 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.
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:
"OWNER"
"READER"
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","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)."]]