Stay organized with collections
Save and categorize content based on your preferences.
The ObjectAccessControls resources represent the Access Control Lists (ACLs) for objects within Cloud Storage. 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. The owner of an object is always an OWNER.
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.
[[["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,["# ObjectAccessControls\n\nThe ObjectAccessControls resources represent the Access Control Lists (ACLs) for objects within Cloud Storage. 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. The owner of an object is always an `OWNER`. \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 \"object\": string,\n \"generation\": \"long\",\n \"id\": string,\n \"selfLink\": string,\n \"bucket\": string,\n \"entity\": string,\n \"role\": string,\n \"email\": string,\n \"domain\": string,\n \"entityId\": string,\n \"etag\": string,\n \"projectTeam\": {\n \"projectNumber\": string,\n \"team\": string\n }\n}\n```\n\n^1^ This property is a string formatted as the specified value type.\n\nMethods\n-------\n\nThe methods for working with an object's access controls are as follows:\n\n[delete](/storage/docs/json_api/v1/objectAccessControls/delete)\n: Permanently deletes the ACL entry for the specified entity on the specified [object](/storage/docs/json_api/v1/objects).\n\n[get](/storage/docs/json_api/v1/objectAccessControls/get)\n: Returns the ACL entry for the specified entity on the specified [object](/storage/docs/json_api/v1/objects#resource).\n\n[insert](/storage/docs/json_api/v1/objectAccessControls/insert)\n: Creates a new ACL entry on the specified [object](/storage/docs/json_api/v1/objects#resource).\n\n[list](/storage/docs/json_api/v1/objectAccessControls/list)\n: Retrieves ACL entries on the specified [object](/storage/docs/json_api/v1/objects#resource).\n\n[patch](/storage/docs/json_api/v1/objectAccessControls/patch)\n: Updates an ACL entry on the specified [object](/storage/docs/json_api/v1/objects). This method supports [patch](/storage/docs/json_api#patch) semantics.\n\n[update](/storage/docs/json_api/v1/objectAccessControls/update)\n: Updates an ACL entry on the specified [object](/storage/docs/json_api/v1/objects#resource)."]]