Please help, I want to write php script to save number of users and I want to add name for each user.
I can add info of login and password in ajxp_users table.
However, how to insert the user name and email?
Hi Hana90, why not using API instead?
The user displayName is stored in his personal role, not the preferences. So you would have to manually create a role, add a paramter for plugin core.conf => displayName and serialize it (the php way) and store it in the ajxp_role db.
Maybe the simple way would be to first create a user, set his name, and have a look at the db content for his role.
Charles
Hello Charles
Thank you for your reply.
Please could you check the following steps I did:
USING PYDIO admin setting:
1- add user (new1)
2- change user name (Myname1)
3- I go to ajxp_roles table, for the same user(new1) who has been just created, I take the serial role:
Then did the following steps manually using sql query in (ajxp_users table)
1- add new user using query insert to ajxp_users with login (new2)
2- add a new role for this user, I take the previous serial role and same last_updated, but I change the user and his name: