Skip to main content Skip to complementary content

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:
Syntax properties
Property Description
action MANDATORY. The action that you want to evaluate access right for.

Examples and results

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!