User creation and role assignment programmatically

I have been creating user role programmatically which is very interesting. Can we also create user, set password and assign roles to the user etc. Programmatically?

Hi,

If you mean defining users in design-time, then the answer is no, you can’t define users similar to design-time roles in your application source code.

If you want to create users in runtime from your code, you can create users as simple entities and insert them into a corresponding table using DataManager. If you use LDAP to store users, you can create them programmatically using LDAP API.

Thank you. The question was in runtime.