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

NameTypeRequiredDescription
benefitstringNo (default="")If supplied, the method will return permission keys that users with the supplied benefit have access to
userstringNo (default="")If supplied, the method will return permission keys that the user has access to
filterarrayNoAn array of filters with which to filter permission keys