i have been trying to apply security rules on Stream and App Level, but i cant seem to get it working.
this is what i have done:
1-Created Custom Properties:
A. Group : For Streams and users.
B. ApplevelMgmt: For Apps And users.
2- Disabled Stream Default Security rule And Stream For Everyone
3- Created Security Rules:
a-Using Stream Template :
((user.@Group=resource.@Group))
action ticked: Read
b.Using App Template:
(resource.resourcetype = "App" and resource.stream.HasPrivilege("read") and resource.@AppLevelMgmt.Empty()) or ( (resource.resourcetype = "App.Object" and resource.published ="true" and resource.objectType != "app_appscript" and resource.objectType != "loadmodel") and resource.app.stream.HasPrivilege("read") )
action ticked: Read
the Above was created by the admin user and the version i am using is Nov-19.
what possibly could be done wrong!!
Should i be using the service user
@rohitk1609 i am tagging you bro cause you rock at this, maybe you can help in