thank you for the reply. But I don't think that I can use the member API from a windows service. The API can only be used in the umbraco-context for one special site. So even in a web environment, I cannot use the api to copy it from one umbraco instance to another.
You can create a webservice in site A that let's you access the members.
In site B you can create a scheduled task that imports the members by using the webservice in site A
Keep in mind that by default passwords are hashed in Umbraco and can't be retreived. To accomplish what you are trying to do you will need to chang the password format to clear text or encrypted in the web.config
Can I ask why you would want to sync members between to different umbraco installs. Wouldn't it be easier to create both sites in the same install ?
Copy Members Service
Hi,
I want to write a service to synchronize the member section of two umbraco sites.
Site One administrates the members and member-groups and member-types. Site Two just take all the settings of site One to have the same members.
My idea is to write a service, that just mirrors the members section from site One to site Two.
But I only see three tables that concern the members section:
- cmsMember
- cmsMemberToMemberGroup
- cmsMemberType
But there are no definitions for the group, only foreign keys and kind of that.
So which data I have to copy from one SQL database to the other to get things working and is it possible anyway in the way I have in mind?
Thanks for your help.
Tom
I think the best way is to use the member API from this.
http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-members
Dave
Hi Dawoe,
thank you for the reply. But I don't think that I can use the member API from a windows service. The API can only be used in the umbraco-context for one special site. So even in a web environment, I cannot use the api to copy it from one umbraco instance to another.
Or is my thinking wrong?
You can create a webservice in site A that let's you access the members.
In site B you can create a scheduled task that imports the members by using the webservice in site A
Keep in mind that by default passwords are hashed in Umbraco and can't be retreived. To accomplish what you are trying to do you will need to chang the password format to clear text or encrypted in the web.config
Can I ask why you would want to sync members between to different umbraco installs. Wouldn't it be easier to create both sites in the same install ?
Dave
Ah, ok, this could be a way.
Of course you can ask.
We want to use two forum of nForum. As soon, as you create two node of the nForum in one site, the site crashed.
So we want to setup the second forum in a subdomain, without two seperate member sections.
That's the reason.
Maybe it's worth to post this behavior in the nForum support forum.
Some others may have had the same problem like you. I would also prefer to have both forums in the same install of umbraco.
is working on a reply...