For a project, we would like to be able to create RDBMS users from inside the end product. For context, we are using a configurator inside the end product from where we are able to enter the first employee of a new company. We would like to make that employee be able to log in after we finished the configuration.
I know which steps to take if I do it by hand; namely: sync my application to IAM, apply the roles to the database, create an IAM user, connect the user to a role, apply the user rights to the end product database and IAM database. Then the user is able to log in.
But now I would like the end product to do this process. I'm able to create an user in IAM and give the user the right user group. Now I'm stuck because I can't apply the user rights to the end product database and IAM database. I noticed these tasks aren't Stored Procedures on the SQL database.
So the question is, how can I make this work? I heard that in other projects people have run into these challenges too so I would like to hear what their solution are/were.
Solved
How can I create a RDBMS user with roles from the end product?
Best answer by Mark Jongeling
Solved by Applying the roles to the database and the IAM-database. Then using the code from the Apply user roles to (IAM-)database tasks, I recreated them in my application. Now I can make users from inside the End product.
The information I needed was the login name, authentication type (RDBMS) and user group.
View originalThe information I needed was the login name, authentication type (RDBMS) and user group.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.