HasPrivilege
Boolean function for resource conditions that returns True if the user making the request has the specified access right for the targeted resource or resources. Otherwise returns False.
Syntax:
resource.HasPrivilege("action")
Properties:
Property | Description |
---|---|
action | MANDATORY. The action that you want to evaluate access right for. |
Examples and results
Example | Result |
---|---|
Resource filter: * Conditions: resource.resourcetype = "App" and resource.Stream.HasPrivilege("read") Action: read |
The user will be given read access to the app provided that the user has read privileges to the stream that the resource is published to. |