I use a membership plugin to assign roles to members, which sync with the user groups
The roles section shows 30 members for a particular role
While the synced user group shows only 9. The others are denied access to the designated forum
What am I missing here?
It's difficult to help you with only cropped screenshots. The best way to debug the issue is to login as an admin and review the user data for those without permissions. The users you're mentioning might have multiple roles, preventing synchronization with user groups. Alternatively, the user data is conflicting with the membership plugin. In any case this is a time consuming and deep investigating job which could only be done in scope of pro support. You can request it if you'll not be able to fix the issue: https://wpforo.com/pro-support/#plugin-support
Thank you for your response. Before considering professional support (which I'm ok with if needed), I would like to try resolving my issue here. My situation is that my setup relies heavily on roles for different functionalities. I would like to know if having multiple roles per user will prevent role syncing.
To clarify, if a user has roleA, roleB, and roleC, which should sync with groupA, groupB, and groupC respectively, will this setup not work?
If it does not work, how can I automate the process of adding users to groups (in order to grant access to restricted forums) without using roles?
Ok, thank you for all your great support. Now I think that I understand how it works, and my confusion is clarified. But I still couldn't figure out how to automate my setup.
Here's an example use case:
User johndoe buys the two memberships: Marketing bundle, Sales Bundle
Each automatically assigns WordPress roles (as bellow), which synch with each's usergroups; aiming at automatically giving access to the designated forum like this
marketing-user (role) -> MarketingUserGroup (secondary usergroup) -> Marketing Forum sales-user (role) -> SalesUserGroup (secondary usergroup) -> Sales Forum
By assigning the second role (sales-user here), it gets synched correctly with its usergroup, but it cancels the member from all other usergroups (MarketingUserGroup). Is this how it should work? And what's my solution here?