I am looking to implement a Rule that fires when a User's Role changes. I would like to be able to configure the Role transition that triggers the Rule.

For example:

  • Paid -> Expired = Trigger Expired Rule
  • Expired -> Paid = Trigger UnExpire Rule

Does anybody know of any existing module / Rule that implements this type of Rule?

Thanks.

Comments

amitaibu’s picture

Component: Rules Engine » Provided module integration
Status: Active » Fixed

You can already do it:
Event: User registered/ User updated account
Condition: User has role.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jrosen’s picture

Hi, thanks of the info. It helped me to identify when a user no longer has the selected role(s) by comparing the unchanged_user and then comparing the updated_user.

Now, I am wondering how I can reference all of the nodes of a certain type for the user and change the workflow status in the Action.

I would greatly appreciate any advice you can offer .

jrosen’s picture

Status: Closed (fixed) » Active

updated status

mitchell’s picture

Status: Active » Closed (fixed)

Please open a new support request.

mitchell’s picture

Component: Provided module integration » Provided Module Integrations

Updated component.