Logical-AND category permissions?

I have Group A with permission on Category A, and an independent Group B with permission on Category B. Now I need a Category AB, and users must be members of both Group A and Group B to see Category AB. Membership in Group A and Group B is independent- there is no relationship between them, and users opt-in to each.

  • Logical-OR would be easy- just add Group A and Group B under category permissions.
  • Logical-AND would be easy if there was a relationship between Group A and B- just make a subcategory.

Neither of those helps me. The only solution I can think of is make a third group AB and have a plugin that populates it with users who are members of both A and B. Any other suggestions?

1 Like

Making a hidden group C, which automatically adds members from group A and B is the way to go.

If you handle complex groups and categories permissions you will eventually want to pass this information over from the system who manages that via Single Sign On. Using that you can automate logic like this on the SSO service.

3 Likes

I assume this requires a plugin or script via the API? It’s too much to do manually.

1 Like