AndyB
Well-known member
Currently I have the following code which will find users which do not have a secondary_group_ids. However I would like to update this finder code so I can exclude by secondary_group_ids. I will add to the Options page of the add-on a field which allows selecting user groups. I'm using the "XF\Option\UserGroup::renderSelectMultiple" , a variable called "excludeUserGroups" will be used. How would I modify the code below?
Thank you.
Thank you.
PHP:
$finder = \XF::finder('XF:User');
$users = $finder
->where('secondary_group_ids', '=', '')
->fetch();