christianwach / civicrm-wp-profile-sync

Keeps a WordPress User profile in sync with a CiviCRM Contact and integrates WordPress and CiviCRM Entities with data synced via Advanced Custom Fields.
https://wordpress.org/plugins/civicrm-wp-profile-sync/
GNU General Public License v2.0
13 stars 17 forks source link

Multisite behaviour : when an existing user is added to a sub-site, the contact is not created #25

Closed jbonlinea closed 1 year ago

jbonlinea commented 3 years ago

Hi @christianwach

Digging and digging in wp civi interaction and behaviour !

This is not an issue per se, but a report on the behaviour of the puig-in in use case you might not have explored :)

the set up : wp network one sub-site has it's own civi instance/database


I've just realised that when an existing wp-user (of the network) is "simply" added to a subsite the contact is not created. :crying_cat_face: The user actually needs to be edited for the contact to be created.

If a user is created from the subsite, could it be via the wp-subsite dashboard, or a front end form, then the new user is created, and the civi contact to. :grinning:


on the other end

when o a user of the main site tries to log in from a sub site he do not belong to, a contact is created and linked to its user... which is not in the sub site (yet?) :upside_down_face:

Cheers

christianwach commented 3 years ago

@jbonlinea Auto-adding them may or may not be desired behaviour. You can use the add_user_to_blog action to add them to CiviCRM in your particular setup.

jbonlinea commented 2 years ago

Hello,

Inddeed, this would work, yet sometimes I understand the rational behind the default behavior of wp-civi-profile sync, but sometimes not, in which case I wonder why and if what I have in mind is in line with a broader behavior consistency.

In this specific case, I have to acknowledge that I don't get why, if I sync my sub-site user, I wouldn''t want the added user to be synced, or synced only after user edit ?

christianwach commented 1 year ago

@jbonlinea This seems to be out of scope for this plugin.

jbonlinea commented 1 year ago

Hi,

Ok I understand that multisite and multiple civi instance may be out of scope of the plug-in.

And I also understand that a set up with wp multisite where each site has its own civi instance is even more marginal.

Finnally, I also understand that if and admin set that up, then he shoud rather be able to change this behavior pragmatically.

However, I'm not sure why would a site admin want its set up to have a behavior that may be summarized like this "when you add a user to your blog it won't be synced, but as soon as you edit it, it will, and remain synced". My understanding might be narrow, but I would assume that a site admin basically either want the user to be synced, or not, during the whole life of the user, and that any different behavior is something you think and plan for.

To be honest, I don't use and need this feature, I did some testing this while ago, and went another route for different reason, so I'm just sharing my understanding here.

Regards

Excellent, unique and poerfull plug-in anyhow ! Thank's again for that :)