# ActionSetACL

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ActionSetACL/

Action: Set/Change ACL.

- **Full name:** `MFiles.ActionSetACL`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-acl"></a>`acl` | [`AccessControlList`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.AccessControlList/index.md) | 1 | An ACL for the action. This is set to the object-specific (custom) component. |
| <a id="f-discard_automatic_acls"></a>`discard_automatic_acls` | `bool` | 2 | True to discard (mark deleted) possible automatic permissions of the object. If false, automatic permissions are left intact. |

<a id="used-in-fields"></a>

## Used in fields

- [`State.action_set_acl`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.State/index.md#f-action_set_acl): The properties of the Set Permissions action.
