What you could do is to generate your own additional DATABASE, where you will store every single registrated ROLE, including related ID.
Then use this database to check for IDs and related roles.
I worked once on a similar issue as i can remember (long ago).
So my solution was an additional DATABASE where i have stored all ROLE-DATA (i think).
When you open this site here, you will see the Login-Management-System i am talking about…
https://russian-dima.wixsite.com/login-system/vnloginmgm
Login as —> Mr-President (Login-Access-Data can be found on the top of the site).
Open the CONSOLE and take a look which data you get in the OUTPUT…
Something like…
Also check which data you can get out of PMD (PrivateMembersData), using a query.
And the last options would be…
- wixMembers-Backend-API
- wixCRM-Backend-API
Check all these options.
To connect the Wix embeded ROLE-MANAGEMENT-SYSTEM with your own, i think this won’t be possible, since as i can remember there is no API existing for it.
This is also the reason, why you can find and EXTERNAL/ADDITIONAL ROLE-MANAGEMENT-SYSTEM integrated into this own created LOGIN-APP…
And because also the out of the box Wix-Badge-System was not enough (not functional enough), my idea was to create my own one…
This way aan own created/expanded “BADGE-GENERATOR” was borned.
And in this case (using) BADGES, you wix gives you enough oppertunities and API-functions to implement and connect it to the wix-standard BADGE-MANAGEMENT, which you normaly can manage inside your WIX-DASHBOARD
The Wix out of the box standard BAGDE-MANAGEMENT…