nickamon
Apr 17, 2023Nimbostratus
APM Advanced Resource Assign based on "user in list" expression
Hi,
I'm attempting to assign resources to a user if their user name, retrieved during authentication, exists in a list. I've tried many combinations of the following to no avail:
expr { lsearch {"user1" "user2" "user3"} [mcget {session.logon.last.username}] }
I've also tried (many, many) combinations of:
expr { [mcget {session.logon.last.username}] in {"user1" "user2" "user3"} }
or
expr { [mcget {session.logon.last.username}] in [list "user1" "user2" "user3"] }
None of these works.
This works though but rather not use it, there are corner cases where it can fail:
expr { "user1 user2 user3" contains [mcget {session.logon.last.username}] }
Any ideas?
Sys::Version
Main Package
Product BIG-IP
Version 16.1.3.3
Thanks!