Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_users_by_permission()

Description

Retrieve all user records in groups with/without the specified permissions



Note that this can't use a straight FIND_IN_SET for permissions since that is case insensitive

Parameters

ColumnTypeDefaultDescription
$permissions array array of permission strings to check

Return

array Matching user records (only returns a subset of columns)

This article was last updated 2nd December 2022 20:05 Europe/London time based on the source file dated 1st December 2022 08:15 Europe/London time.