# \[SOLVED\] Solid-Client create ACL for container makes agent lose control

**URL:** <https://forum.solidproject.org/t/solved-solid-client-create-acl-for-container-makes-agent-lose-control/4029>\
**Category:** Build a Solid App\
**Created:** [February 26, 2021, 9:04pm UTC](https://forum.solidproject.org/t/solved-solid-client-create-acl-for-container-makes-agent-lose-control/4029 "2021-02-26T21:04:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://forum.solidproject.org/u/Vincent)\
**Post date:** [February 27, 2021, 8:49am UTC](https://forum.solidproject.org/t/solved-solid-client-create-acl-for-container-makes-agent-lose-control/4029/3 "2021-02-27T08:49:06Z")

</div>

Hi Jan, I think what may be the problem there is that while you have write access to the Container, the ACL does not specify any access that applies for children of that Container without an ACL, and therefore does not give you write access to them.

To set this access, you’ll probably want to replace

```auto
const updatedAcl = setAgentResourceAccess(
  resourceAcl,
  webId,
  { read: true, append: true, write: true, control: true }
)

```

with

```auto
let updatedAcl = setAgentResourceAccess(
  resourceAcl,
  webId,
  { read: true, append: true, write: true, control: true }
)
updatedAcl = setAgentDefaultAccess(
  updatedAcl,
  webId,
  { read: true, append: true, write: true, control: true }
)

```

(So in addition to specifying Resource access on the Container, you also set Default access, which specifies what access people have by default on children if they do not have their own ACL.)

Also make sure that that second call extends `updatedAcl`, not `resourceAcl` again.

Let us know if that helps.

---

_[View the full topic](https://forum.solidproject.org/t/solved-solid-client-create-acl-for-container-makes-agent-lose-control/4029)._
