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.
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
So the api will be able to access paid plan roles that you can’t see in the roles admin section? That’s the reason I am asking because those roles are only visible in the paid plans and not general site roles. I just want to avoid having to spend money to test my logic out. Thanks for the assistance with this.