Forum Discussion

Sakiy's avatar
Icon for Altocumulus rankAltocumulus
Jul 30, 2021

APM 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 VDI connection for later resource assign.

I need to direct some users for new environment for testing. Only select users to go to different AD auth and resource assign.


For examples, filter 5 users to go to new AD auth and resource assign.

user1, user2, user3, user4, user5


In this case, I can write branch rules like following.

Name user1 Expression: expr { [mcget {session.logon.last.username}] equals "user1" }

Name user2 Expression: expr { [mcget {session.logon.last.username}] equals "user2" }

Name user3 Expression: expr { [mcget {session.logon.last.username}] equals "user3" }

Name user4 Expression: expr { [mcget {session.logon.last.username}] equals "user4" }

Name user5 Expression: expr { [mcget {session.logon.last.username}] equals "user5" }


However, actually, we have more users, is there any way to combine above into 1 branch by combining OR conditions?


Also, if possible, I want to check domain of user after user name is matched. How can I write Expression to filter with

matching for both conditions? For examples,

user1 and domain must be domain1

In case of separated expression, expr { [mcget {session.logon.last.username}] equals "user1" } expr { [mcget {session.logon.last.domain}] equals "domain1" }


How can I combine above 2 expression in one branch?


Best Regards





2 Replies