Currently, the "Linked account was added" Rules event fires in the following scenarios:

1. A new user is registered via Janrain Engage
2. The user adds a third-party provider at the "Linked accounts" tab

It is a nice feature that this event fires in both scenarios, but we also need a way to differentiate between the two. One possibility would be a new Rules condition that specifies whether the linked account was added via a new registration or via the linked accounts tab.

For instance, if a new user has registered via Janrain Engage, the site admin might want to show a message on the site suggesting that the user set his/her own site password. But if the user was only adding an extra provider via the linked accounts tab, then this message wouldn't be necessary.

George, what do you think about such a condition? Or is there some other way we could achieve this using the default "data comparison" condition and a new token supplied by the module?

Actually, here's one other possibility: What about an condition or action that loads the number of linked accounts the user has either before and/or after the linked account was added? This way, you could do a data comparison and if the number of linked accounts before the event was 0, then it's probably a new registration. The only problem with this is that you don't know for sure because a user could have previously registered and then subsequently deleted all linked accounts.

Thoughts?

--Ben