Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove all Characters after specific character

meirh_226404
Nimbostratus
Nimbostratus

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 2

Stanislas_Piro2
Cumulonimbus
Cumulonimbus

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

The-messenger
Cirrostratus
Cirrostratus

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?