I'm wondering if it is possible to set up a sync to Drupal User and have Roles assigned/unassigned automatically? I would be looking to use a custom multi-select picklist field on Contact in Salesforce that has corresponding options for all Roles in Drupal. Upon checking/unchecking one or more Role option in either the Salesforce Contact or Drupal User it would update the other system appropriately.

I saw an old issue that explains the same thing: https://www.drupal.org/project/salesforce/issues/2337491
The answer if I understand correctly seems to be to use custom fields on User for each Role to sync to. Then use entity hooks to assign the Roles through code. However that issue was from 6 years ago and was for Drupal 7. I'd prefer to avoid having to create and manage multiple fields for each Role on User and use custom code. I'm using Drupal 8 and wanted to see if anything new in this module allows for direct syncing with Roles. And if so how would I achieve that? Thank you.

Comments

nate-niru created an issue. See original summary.

aaronbauman’s picture

Status: Active » Closed (outdated)

I'm doing some cleanup on unsupported branches.
Please re-open this issue and update the version to 5.0.x-dev if this issue is still applicable to the latest release.