Skip to main content
interface HasPermissionRequest
object: string;
object_type: string;
options?: Record<string, string>;
permission: string;
principal?: string;
object: string

Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.

object_type: string

The type of object being checked.

options?: Record<string, string>

Optional parameters.

permission: string

Permission to check for.

principal?: string

Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user.