listPermissionKeys()
Overview
public array function listPermissionKeys(
string benefit = ""
, string user = ""
, array filter
)
Returns an array of permission keys that apply to the given arguments.
See Website users and permissioning for a full guide to website users and permissions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
benefit | string | No (default="") | If supplied, the method will return permission keys that users with the supplied benefit have access to |
user | string | No (default="") | If supplied, the method will return permission keys that the user has access to |
filter | array | No | An array of filters with which to filter permission keys |