Does the wixusers api only show roles you create? I have several roles i have created but in the site members area i can't see the paid subscription roles. I want to be able to detect which paid subscription role a user is associated with and the expand or hide content based on their access. I wanted to check before going ahead and paying for a subscription to test the logic out.
top of page
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.
bottom of page
You can get an example of getting members roles from Wix Users within the API reference section.
Have a read of the Wix User api reference here.
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.User.html
You can set pages in your Wix Editor to be viewed by paid plan users only already.
https://support.wix.com/en/article/limiting-site-pages-to-paying-members-using-the-paid-plans-app
As for accessing paid plans for your site members.
https://support.wix.com/en/article/accessing-the-manage-plans-tab-in-paid-plans
https://support.wix.com/en/article/viewing-and-managing-paid-plans-that-clients-purchased
See lots more at their own Wix Support pages.
https://support.wix.com/en/apps-made-by-wix/paid-plans