This question about Authentication or Authorisation: Asked

Create view to show all users, including column showing their membership of a particular Group (or not)

Hi. Our installation provides read-only for guests, and requires anyone creating or editing content to have an account, and to be a member of the Editors Group.

We would like to create a view on the main users Group, including a column which indicated which users are shown as being members of the Editors Group (or not). That way we can easily spot any "orphan" registered users who have no Editing rights.

In SQL terms this would be a Left Join. So, if UserID is the key used in GroupMembership

   SELECT WikiUsers.UserID, WikiUsers.EmailAddr, GroupMembership.GroupName
   FROM WikiUsers
   LEFT JOIN GroupMembership ON WikiUsers.UserID = GroupMembership.UserID
   WHERE GroupMembership.GroupName = 'EditorsGroup'

 

QuestionForm edit

Subject Authentication or Authorisation
Extension
Version Foswiki 2.1.6
Status Asked
Related Topics
Topic revision: r1 - 08 Jun 2021, JohnEdge
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy