# Automatic user managent

**URL:** <https://forum.pydio.com/t/automatic-user-managent/2131>\
**Category:** Pydio 8\
**Created:** [February 9, 2019, 5:09pm UTC](https://forum.pydio.com/t/automatic-user-managent/2131 "2019-02-09T17:09:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamiware](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kamiware](https://forum.pydio.com/u/kamiware)\
**Post date:** [February 9, 2019, 5:09pm UTC](https://forum.pydio.com/t/automatic-user-managent/2131/1 "2019-02-09T17:09:28Z")

</div>

Dear,

I’m setting up an Pydio 8.2.2 (Debian, nginx, php7.3, mariadb 10.2) server for a non profit.  
I’ll have a list of almost 2000 users that come from an internal platform.  
I got it working to insert the users directly in the database, and this works fine.

However, I also need to be able to automatically adapt the roles of the users. And here I’m stuck. When I change in ajxp\_user\_rights the rights for ajxp.roles & ajxp.roles.order this doesn’t get applied.  
I searched all over, but couldn’t figure out why Pydio ignores this.

I also looked into cmd.php, but I feel like I’m missing something, since I have no clue how to use it to modify the roles of an user.  
(Even worse, I can login with -t=xxxxxx and cmd asks me for an action, then, whatever action I provide (like user\_update\_role) it says ‘Authentication Failed’)

Thanks for your help,  
Samuel

---

<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:** [February 11, 2019, 8:32am UTC](https://forum.pydio.com/t/automatic-user-managent/2131/2 "2019-02-11T08:32:00Z")

</div>

Hi,  
if you wish to change the rights/settings for every user you can edit the root group it’s located in **roles** and it will affect all the users.

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [February 11, 2019, 8:40am UTC](https://forum.pydio.com/t/automatic-user-managent/2131/3 "2019-02-11T08:40:01Z")

</div>

Hi,  
Did you try to use api v2 for updating user’s role?

copy the content of [https://github.com/pydio/pydio-core/blob/develop/core/src/plugins/core.ajaxplorer/routes/api2.json](https://github.com/pydio/pydio-core/blob/develop/core/src/plugins/core.ajaxplorer/routes/api2.json)  
paste into : [https://editor.swagger.io/](https://editor.swagger.io/)

Note: Role id of user\_A in db is “AJXP\_USR\_/user\_A”
