Skip to main content

IsAnonymous

ON THIS PAGE

IsAnonymous

Boolean function for user conditions that returns True if the user requesting access has logged in as anonymous. Otherwise returns False.

Syntax:  

user.IsAnonymous()

 

Examples and results

Examples and results
ExampleResult

Resource filter: Stream_*

Conditions: user.IsAnonymous()

Action: read

Anonymous users are allowed to read streams.

Resource filter: Stream_*

Conditions:  !user.IsAnonymous()

Action: read, publish

All users that are not anonymous (notice the NOT operator, !, in front of the condition) are allowed to read and publish streams. Anonymous users will have no access to streams.