Skip to main content Skip to complementary content

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.

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!