siyamandayubi / Orchardcollaboration

Orchard Collaboration is a free, open source ticketing system, project management and collaboration framework build on top of the Orchard CMS. It natively integrates with Orchard CMS and extends its features by allowing its users to collaboratively work on the content or by simplifying communication with the customers.
MIT License
39 stars 20 forks source link

Import Users Orchard CMS #17

Open im-hs opened 6 years ago

im-hs commented 6 years ago

Hi,

can I import users in Orchard Collaboration from another Orchard CMS?

Thanks!

siyamandayubi commented 6 years ago

Hi, yep, there is no problem, you just need to assign Operator role to the new users

im-hs commented 6 years ago

Hi, I've copied a user from another database Orchard (NO Collaboration) in the table "Orchard_Users_UserPartRecord" it not appear in the list of operators. I've assigned the role (Role_id = 8) in the table Orchard_Roles_UserRolesPartRecord, but the result is the same.

Can you help me, please?

Thanks!

im-hs commented 6 years ago

I hope the encrypted password is handled without problems.

siyamandayubi commented 6 years ago

User is a ContentType. Only coping the record is not enough, as it needs a record in ContentItemTable etc, the best way, is using Orchard import/export feature, which will copy all necessary steps

im-hs commented 6 years ago

Wonderful, very useful!

Thank you!