# Pydio CLI - update user right

**URL:** <https://forum.pydio.com/t/pydio-cli-update-user-right/1243>\
**Category:** Pydio 8\
**Created:** [June 25, 2018, 12:25pm UTC](https://forum.pydio.com/t/pydio-cli-update-user-right/1243 "2018-06-25T12:25:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michelepezzi](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@michelepezzi](https://forum.pydio.com/u/michelepezzi)\
**Post date:** [June 25, 2018, 12:25pm UTC](https://forum.pydio.com/t/pydio-cli-update-user-right/1243/1 "2018-06-25T12:25:51Z")

</div>

Hi,

I’m trying to change user right via CLI : add rw permission to a test-user on a test-repository.  
i found this command

sudo -u web php /var/www/html/cmd.php -u=admin -r=test-repo -a=edit --sub\_action=update\_user\_right --user\_id=test-user --right=rw

output

Applying action ‘edit’ on workspace test-repo (xxxxxxxxxxxxxxxxxxxxxxxxx)  
: Could not find action edit

Some suggestion?

thx

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [June 25, 2018, 12:54pm UTC](https://forum.pydio.com/t/pydio-cli-update-user-right/1243/2 "2018-06-25T12:54:10Z")

</div>

Hi,  
you should use this command `sudo -u www-data php <your-pydio>/cmd.php -u=USER -p=PASSWORD -r=ajxp_conf -a=user_update_right --user_id='' --repository_id='<id>' --right='rw'`

if you have access to the database cli you can use this command to find the `repository_id`=

```auto

FROM ajxp_repo

WHERE display='<the displayed name of the workspace>'

```

---

<div class="post-metadata">

**Author:** ![michelepezzi](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@michelepezzi](https://forum.pydio.com/u/michelepezzi)\
**Post date:** [June 25, 2018, 1:02pm UTC](https://forum.pydio.com/t/pydio-cli-update-user-right/1243/3 "2018-06-25T13:02:53Z")

</div>

It work’s perfectly.

Thx

Michele
