Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I want to hide an application published in a stream with a security rule.
The idea is to set a custom property (YES or NO) to the applications. If the CS is YES for the application then nobody can see the application in the hub/stream.
How can I do that ?
Regards
Hi @fabricecallegari ,
Please go through with the below link
https://www.youtube.com/watch?v=yaBfW2RtxGA&t=900s
Surely help you to achieve the required.
For this you need to edit Stream Security rule.
For example
(resource.resourcetype = "App" and resource.stream.HasPrivilege("read") and resource.@DemoType.empty())
or ((resource.resourcetype = "App.Object" and resource.published ="true" and (resource.objectType != "app_appscript" or
resource.App.@ODAGTemplate = "true") and resource.objectType != "loadmodel")
and resource.app.stream.HasPrivilege("read"))
And new rule for access
App_*
Read
resource.stream.HasPrivilege("read") and ((user.@DemoType=resource.@DemoType))
Hi @fabricecallegari ,
Please go through with the below link
https://www.youtube.com/watch?v=yaBfW2RtxGA&t=900s
Surely help you to achieve the required.
For this you need to edit Stream Security rule.
For example
(resource.resourcetype = "App" and resource.stream.HasPrivilege("read") and resource.@DemoType.empty())
or ((resource.resourcetype = "App.Object" and resource.published ="true" and (resource.objectType != "app_appscript" or
resource.App.@ODAGTemplate = "true") and resource.objectType != "loadmodel")
and resource.app.stream.HasPrivilege("read"))
And new rule for access
App_*
Read
resource.stream.HasPrivilege("read") and ((user.@DemoType=resource.@DemoType))
Thank you for yours answers.
it seems to work. I wait a few days before closing the discussion.
Of course it works. I do not offer untested solutions. :Р