Control Web Panel

Developers => CWP API => Topic started by: Juancer1123 on March 10, 2021, 12:23:47 AM

Title: Create database and re-use user and password
Post by: Juancer1123 on March 10, 2021, 12:23:47 AM
Hi,

When I'm creating databases in CWP WEB I can create a BBDD and "add a new user", however, I can use the same details (user and password) then, the user from that moment have permissions over that BBDD.

I don't have that option when I want to use the API because the userdb is not available at databasemysql -> add and usermysql -> add said "the user already exists". I understant the second reply, but, as user (IP:2083), they can create databases and add existing users (i found the value as "userexisting" in the curl request) and set the database user.

Could we have the same option with the API?

This is blocking my developmet because I'm creating databases but I can not use it, only if I use root user to provide permissions, but I don't want to use that option.

If you need addtional information, just let me know.

Regards
Title: Re: Create database and re-use user and password
Post by: Juancer1123 on March 15, 2021, 08:16:37 PM
Anyone?