I can see in the wix-users API that you can retrieve the PricingPlan data for the current user.
But is there a way to retrieve the PricingPlan data for an arbitrary user, say by user ID?
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Have a look at using Wix Users Backend API and the getUser function to see if you can pull the users role from the returned info.
https://www.wix.com/corvid/reference/wix-users-backend.html#getUser