Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bknol
Partner - Contributor III
Partner - Contributor III

Security rule

Hi,

Is it possible to concatenate values in security rule conditions?

For example:

resource.name + "." + resource.app.name = user.<attribuut>

Or to use resource variables in matches expression like below?

user.<attribuut> matches ".*" + resource.name + ".*"

Bas Knol

11 Replies
korsikov
Partner - Specialist III
Partner - Specialist III

As far as I know you can only use logical construction and

for example

resource.name="App_*" and (resource.app.name="appname")

amien
Specialist
Specialist

not possible yet? i really would like to have the basic functionality

Anonymous
Not applicable

Any update on this? I'm very much in need of this functionality.

amienbknol‌ were either of you able to solve this problem?

korsikov
Partner - Specialist III
Partner - Specialist III

Do you try use like?

for expl..

resource.stream.HasPrivilege("read") and (resource.@DemoType like "Analyz*" and (user.@UserType="Demo" or user.userDirectory="DEMOAPP"))

analienx
Contributor III
Contributor III

This wont help, basically there is a need for scenario like :

resource.attribut like resource + ".*" or something like that

mehmet_gencsoy
Luminary Alumni
Luminary Alumni

We also Need a solution for this issue. We want to match generic user.Group with custom properties. But user.Group contains additional string. So we Need the possibility to concat string before like: user.Group like "*"+resource.@Project+"*".

Please help. Thanks.

BR

Mehmet.

Anonymous
Not applicable

Any update on this?  We also really need this functionality.  It seems I can't even use the value from a user attribute as the regular expression match - must be a static string.

For example, I'd like to be able to do this:

  resource.name matches user.environment.clientAccess

...where clientAccess is a regEx expression with to match the valid resources this user can access.

caio_caminoski
Creator
Creator

Hi! Any solutions to this problem?

 

Thank you!

 

Caio

jlongoria
Creator
Creator

This would definitely be helpful! Is there an official feature request in place already? If not, how do we get a feature request to the right people?