Forum Discussion
Sakiy
Altocumulus
Jul 30, 2021APM branch rule for multiple user name matching
I am quite new to set APM branch rule. Please kindly help me how to write the rules In our APM, domain check is already done and AD auth is separated for each domain. It is used for Vmware View...
Daniel_Wolf
MVP
Jul 30, 2021Hi Sakiy,
you could use a TCL expression like OR to chain the usernames. See this manual: https://techdocs.f5.com/en-us/bigip-14-1-0/big-ip-access-policy-manager-visual-policy-editor-14-1-0/tcl-usage.html
Also take a look here:
https://devcentral.f5.com/s/articles/apm-variable-assign-examples-1107
So you might end up with something looking like this:
expr { [mcget {session.logon.last.username}] == "user1" || [mcget {session.logon.last.username}] == "user2" }
If possible, I would recommend joining those users in an LDAP or AD group.
KR
Daniel
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects