Forum Discussion

meirh_226404's avatar
meirh_226404
Icon for Nimbostratus rankNimbostratus
Oct 30, 2017

Remove all Characters after specific character

Hello I have simple Access policy flow with a Variable assignment- username and password. I'm asking the users for username only and the APM adding the domain. "session.logon.last.domain = Text mydomain.COM" There are few users who get confused and trying to enter their email address, testuser@domain.com. I want to be able to catch it and remove the string "@domain.com". The second option is to remove everything after @ sign. I can't find a way to do it. Appreciate your help.

 

Thanks.

 

2 Replies

  • Hi,

     

    in the logon page configuration, enable option Split domain from full Username

     

    the username will contain only username part from 2 types of user names:

     

    • DOMAIN\username
    • username@DOMAIN.LOCAL
  • Not an answer but question on this. What is the TCL command that would perform the same action? To remove everything after a character. I'm currently trying to format a username and I'm not sure what the app is looking for. If my current session.logon.last.username is sameaccountname_domain.local, how can I remove the underscore and everything after it?