Automatic user managent

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

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.

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
paste into : https://editor.swagger.io/

Note: Role id of user_A in db is “AJXP_USR_/user_A”