WordPress.org

Forums

WordPress Zendesk
Multiple WordPress Sites to One Zendesk? (12 posts)

  1. markb1439
    Member
    Posted 4 years ago #

    I'm wondering if multiple instances of the plugin could be used (each on a separate WordPress site) in conjunction with a single Zendesk?

    Let's say our company has WordPress sites at redwidget.com and bluewidget.com. And we want to allow users of either WordPress site to login to our widget.zendesk.com Zendesk using their WordPress credentials.

    Would that work in theory?

    Thanks,

    Mark

  2. Patrick Garman
    Member
    Plugin Author

    Posted 4 years ago #

    It MAY work, however the problem lies in the multiple users from different databases merging into a single Zendesk. Also Zendesk has to know where to send users to login and where to redirect on logout. So there will only be one MAIN site you are working with.

    Keep in mind..
    -- if you send external ID's you will have multiple users with the same ID, three blogs mean three admins with user ID# 1 ... if three blogs with different users all have the same ID# 2. Each time someone logs into Zendesk it will overwrite their info
    -- if you don't send external IDs you have a better chance of it working since it only checks email addresses to login.

    This is all assuming there is nothing on the Zendesk end restricting to the same site. Don't remember how their APIs work off hand.

  3. markb1439
    Member
    Posted 4 years ago #

    In testing, the problem is:

    If Zendesk has redwidget.com as the main domain, and a user tries to access Zendesk while logged into the bluewidget.com WordPress site, he or she will be asked for login credentials. This is because, as you mentioned, Zendesk is only accepting logins from one main site. The problem is that, on each WordPress installation, that installation's domain is in the plugin.

    Maybe the answer is to:

    1) As you suggested, don't send the external ID; and
    2) Hard-code the plugin so that, on each installation, the main site is listed as the remote login URL.

    Does that sound feasible?

    I'll try it...

  4. Patrick Garman
    Member
    Plugin Author

    Posted 4 years ago #

    Like I said the problem is the mixing of user databases. If you have it in a "multi-site" network install it would work for sure.

    At most you would simply need to ensure that users are listed as "users" across all the sites you want them to access the Zendesk through.

    Does that make sense?

  5. markb1439
    Member
    Posted 4 years ago #

    Yep. The problem is that we need to have multiple multisite installations pointed at the same Zendesk. Don't know if this will work for us then, unless we can figure out an efficient way to sync the users across to the main site. Hmm...

  6. markb1439
    Member
    Posted 4 years ago #

    Also, some multisite installations use multiple databases (for example, via the WPMU DEV Multi-DB plugin). Even if we're not talking about multiple sites as mentioned above, is this a problem?

    In other words, this scenario would be a single multisite installation, but with 256 databases (for example). Various blog users are created in various databases. But everything is under the same main domain.

    Should that work?

  7. Patrick Garman
    Member
    Plugin Author

    Posted 4 years ago #

    The multi-DB feature should not be any problem. Since everything is handled by the WPDB class and standard WP functions... you're fine using multiple databases. You may have a users table across 5 databases but the ID's and email address are still all unique.

    What about this plugin?
    http://wordpress.org/extend/plugins/wp-multi-network/

    Seems like the perfect solution? Central user base for multiple networks.

  8. markb1439
    Member
    Posted 4 years ago #

    That plugin looks like it might work, but I am not sure for two reasons:

    1) Doesn't look officially 3.1-compatible (although seems to work), and doesn't seem to be getting any updates regularly.

    2) I'm not sure if it truly lets multiple networks share a user base (which is our desired scenario), or if it lets you split one physical network into the appearance of multiple networks. To me, it appears to do the latter. Do you know which it actually does? (I know, we're digressing.)

    Thanks,

    Mark

  9. jvenator
    Member
    Posted 4 years ago #

    WPMU just released a plugin that syncs user accounts across multiple sites with single wordpress installs. Might be worth considering...
    WordPress User Synchronization plugin

  10. markb1439
    Member
    Posted 4 years ago #

    WPMU just released a plugin that syncs user accounts across multiple sites with single wordpress installs. Might be worth considering...

    Looks good, but it's not multisite-compatible, right?

  11. jvenator
    Member
    Posted 4 years ago #

    I'm confused. Your initial question referred to finding a way to use the Zendesk plugin on multiple individual WP sites. Patrick confirmed that it would definitely work on a multisite install because all users are managed in a single place (regardless of multiple DB's). Basically, if you're on multisite then you don't need anything, because it works as-is already.

    I simply recommended this plugin because it syncs user accounts between individual WP installs, which addresses your initial question and the issues Patrick raised in the 2nd and 4th comments. Not sure what else to tell you. Good luck.

  12. markb1439
    Member
    Posted 4 years ago #

    Hi,

    As I clarified later in the thread, our problem is that we need to have multiple multisite installations pointed at the same Zendesk.

    So yes, the Zendesk plugin works great as-is on a single multisite installation.

    And the other plugin you mentioned seems great in concept, however it apparently works only with single non-multisite WordPress sites. So we have almost all the pieces we need...just not quite. If we could find a way to sync all users from multisite networks to the main (or a "master") multisite network, we'd have it.

    Thanks,

    Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Zendesk
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic