Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
Is it possible to have two security rules where each rule grants "export data" capability to specific streams?
For example, we have to streams:
Currently, we have disabled the ExportAppData security rule and created a custom rule where it provides export data capability on the Monitoring Apps stream where the user has read permissions.
The rule reads like this:
((resource.stream.name="Montoring apps") and resource.hasPrivelege("read"))
New requirement (possible new rule?)
We now have a rule where from the whole population of users who have access to apps in the Everyone stream... some of them need to have export app data capability for the apps in the everyone stream.
So is it possible to have two rules, one like the original above, and another one where some users can export from apps in the Everyone stream?
You could probably do it in the one rule if you wrote it something like this (using user.group as example--replace it with whatever determines this access for you):
(resource.stream.name="Montoring apps" and resource.hasPrivelege("read")) OR (resource.stream.name="Everyone" and resource.hasPrivelege("read") and user.group="EveryoneExport")
This seems good!
Would having two different security rules also work?
Because of the OR condition, I believe you need to do it in one.