The roles are overwritten on each target blog. If you use a role editing plugin, you can use this tool to sync the role capabilities to the other blogs in the network.
When syncing users, the user’s image from the One User Avatar plugin is copied.
Comments
Love your plugin. I have been attempting to programattically sync users with specific roles. However, I have not been able to accomplish this.
Any suggestions on how to use “broadcast_user_role_sync()->sync_user_roles( [ ‘blogs’ => 82 ] );” with role_in = “clinician_utah”
I am assuming that 82 in the code above is the blog ID?
The add-on does not automatically sync users when they register, although I suppose a code snippet could do that. If you e-mail me your requirements (when to sync, to where) I can perhaps come up with something that triggers the User Role Sync add-on?
Any suggestions on how to use “broadcast_user_role_sync()->sync_user_roles( [ ‘blogs’ => 82 ] );” with role_in = “clinician_utah”
I am assuming that 82 in the code above is the blog ID?
Any guidance would be much appreciated :-)
Blogs = to which blogs to send the user roles from the current blog.
So in your case, I’m figuring you’re looking for something like this:
broadcast_user_role_sync()->sync_user_roles( [
‘blogs’ => 82,
‘role__in’ => ‘clinician_utah’,
] );
Don’t forget the double underscore in role__in, which I kept to stay with the WordPress “standard”.
So this addon will automatically sync users when they register? Or i need to code something?
The add-on does not automatically sync users when they register, although I suppose a code snippet could do that. If you e-mail me your requirements (when to sync, to where) I can perhaps come up with something that triggers the User Role Sync add-on?