checkEntityPolicy

Function

Validate user meets entity policy

Parameters

Parameter Type Default Notes
policy Required IEntityPermissionPolicy
context Required IArcGISContext

Returns

Property Type Notes
code string

Policy Response code, for i18n

name string

Description of the policy being checked e.g. License Required: "hub-premium"

response PolicyResponse

Policy Response string

value string

Value determined for the current user e.g. "hub-basic"


Function defined in common/src/permissions/_internal/checkEntityPolicy.ts:17