This object is in archive! 

Can I add users directly in the database?

Archived Gabriel R 11 years ago

We need to migrate our existing users to UseResponse. While it is very easy to create users with the REST API, it seems to be impossible to set the password that way.


Is it feasible to directly add users with passwords to the database? I see there is a ur_user table. Will it suffice to just add new users there? Also how would I need to hash the passwords?


Thanks!

Best Answer
photo

While adding new users with API or registering users in system manully, password is automatically generated and sent to user's email.

In order to have one account under 3rd party system and UR, so that they use one account to enter both systems, you need to use Single Sign On available in Corporate package, and set it up, so that registration email is not sent and Login Form to be used only from your 3rd party application. This can be set it module settings.

Replies (3)

photo
2

While adding new users with API or registering users in system manully, password is automatically generated and sent to user's email.

In order to have one account under 3rd party system and UR, so that they use one account to enter both systems, you need to use Single Sign On available in Corporate package, and set it up, so that registration email is not sent and Login Form to be used only from your 3rd party application. This can be set it module settings.

photo
2

But SSO is only available for Ruby and PHP, right? Our current user system is based on DotNetNuke which is .net/ASP...


Also we don't necessarily want to keep the DotNetNuke user system.

photo
2

Yes, correct. Though, the same file can be rewritten easily for ASP .net on your own.

If you don't want to keep DotNetNuke users, you can import/export users directly from/to db. You'll need to transfer Email and Full Name into UR db.

Then launch script to regenerate and send registration emails to everyone for them to not recover passwords

Replies have been locked on this page!