Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Beckert 193 posts 469 karma points
    Apr 21, 2013 @ 16:12
    Thomas Beckert
    0

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 23, 2013 @ 12:19
    Dave Woestenborghs
    0

    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

  • Thomas Beckert 193 posts 469 karma points
    Apr 23, 2013 @ 12:27
    Thomas Beckert
    0

    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?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 23, 2013 @ 12:33
    Dave Woestenborghs
    0

    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

  • Thomas Beckert 193 posts 469 karma points
    Apr 23, 2013 @ 12:43
    Thomas Beckert
    0

    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.

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Apr 23, 2013 @ 15:04
    David Brendel
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft