You can send WP user rules via custom user fields from the plugin, but there is no core functionality that interacts with WP use roles at this time. I am curious what you are trying to achieve, though.
At the moment, I am part of a WP beta group for a new and unreleased e-commerce software. It's looking very promising. At the same time, I'm looking into the possibility of reducing my WP plugin stack, including the removal of a popular membership plugin, as they tend to be pricey and heavy-going.
The new e-commerce software will have the ability that when someone is signing up for a product (digital), it can change/edit/modify what WP User Roles the person has in their WP profile.
I can manually add many user roles and allocate a user role depending on a product purchase.
There are 5 WP user roles by default and a new user is by default assigned to be a "subscriber."
But that can be changed and it's possible for a WP user to have multiple roles, not just one.
As an example, let's say that I have 2 separate products, Product A and B. Product A is a one-off purchase (lifetime) and Product B is a subscription product that has monthly payments. I also add manually to the available list of user roles, "User Role A" and "User Role B."
I set Product A in a way that when Person X buys Product A, the software will give Person X's WP profile an extra User Role, called User Role A leaving their default user role as a "subscriber" unchanged. This person would have this User Role for life as it's a one-off (lifetime) purchase.
I set Product B in a way that when Person Y buys Product B, the software will give Person X's WP profile an extra User Role, called User Role B leaving their default user role as a "subscriber" unchanged. Person Y would have this User Role for as long as the person is currently subscribed to this product. Once a person stops this subscription, Person Y's WP Profile would no longer have User Role B enabled, reflecting that this person is no longer part of that subscription.
In short:
Person X purchase Product A, Person X's WP profile has "Subscriber" and "User Role A" enabled.
Person Y purchase Product B, Person Y's WP Profile has "Subscriber" and User Role B" enabled.
Person X
then also buys Product B, Person X's WP Profile has "Subscriber", "User Role A" and "User Role B" enabled (having already purchase Product A).
Person Y then cancels the subscription to Product B, Person Y's WP Profile has "Subscriber" user role only, having "User Role B" revoked from the account.
What I'm wondering is what can happen if I set XF groups to the WP user roles that a person has.
In short:
XF Forum A is for those who have WP User Role A enabled.
XF Forum B is for those who have WP User Role B enabled.
So,
If Person X has WP User Role A, grant permission to this user to access XF Forum A.
If Person X has WP User Role B, grant permission to this user to access XF Forum B.
If Person X has WP User Role A
AND WP User Role B, grant permission to this user to access XF Forum A
and XF Forum B.
Hopefully the above goes some way to assist you in what I'm trying to achieve. Which leads to the question, Could XFtoWP automatically recognize
multiple WP user roles and do its marvelous magic with XF as explained above?
(especially when user roles are part of every WordPress website and not reliant on a plugin).
If you got this far reading, hopefully it wasn't too boring!