Hi Kyle,
Ok, I changed the triggers and conditions like you suggested, but the user group is still not being removed by the auto action. The plans that I want to have the user group removed when they expire are id 1 and 2, cb_officiant is the field that determines if the user group needs to be removed. If set to 1 the user group needs to be removed.
In my Auto Action to remove the User Group on expiration I have the following settings:
Type: Usergroup
Triggers: onCPayUserStateChange
User: Automatic
Conditionals: [var3] Less than or Equal to 2
[var2] Equal to X
[cb_officiant] Equal to 1 <- this is the field that tells me if the user group needs to be added or removed
User Group Actions Mode: Remove Usergroups
Group: Officiant
It is like the remove user group function is not working. I don't know how to debug this, to see if the conditions are being triggered or not, as it happens automatically.
I used this to add the user group and it is working:
Type: Usergroup
Triggers: onCPayUserStateChange
User: Automatic
Conditionals: [var3] Less than or Equal to 2
[var2] Equal to A
[cb_officiant] Equal to 1
User Group Actions Mode: Add Usergroups
Group: Officiant
The only difference is the [var2] being X instead of A and the Mode being Remove Usergroups instead of Add Usergroups.
Any ideas?
Thank you.