listPermissionKeys()

Overview

public array function listPermissionKeys(
      string role   = ""
    , string group  = ""
    , string user   = ""
    , array  filter
)

Returns an array of permission keys that apply to the given arguments.

See CMS permissioning for a full guide to CMS users and permissions.

Arguments

NameTypeRequiredDescription
rolestringNo (default="")If supplied, the method will return permission keys that the role has access to
groupstringNo (default="")If supplied, the method will return permission keys that the group has 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