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
Name | Type | Required | Description |
---|---|---|---|
userId | string | Yes | ID of the user whose permissions we wish to get |