listUserPermissions()

Overview

public array function listUserPermissions(
      required string userId
)

Returns an array of permission keys that the user has access to

See Website users and permissioning for a full guide to website users and permissions.

Arguments

NameTypeRequiredDescription
userIdstringYesID of the user whose permissions we wish to get