09-22-2015 07:17 AM - edited 03-18-2019 05:01 AM
Hi,
i have a problem with a regex expression at the device templates section at TMS.
I want to use the first and last name, delete everything of first_name except the first letter. Then add the domain after it.
So for example: first_name is "chris". last_name is "man". For Device Address Pattern i used: {first_name['^[a-z]'\[a-z]+'='']}.{last_name}@domain.com.
The result is chris.man@domain.com.
So far so good. But i don´t get the expression, that only the first letter of "chris" is used. It should be c.man@domain.com
Can somebody give me a hint?
Kind regards
Chris Man
09-22-2015 11:22 AM
Question, is c.man@domain the actual LDAP username?
Why not just match based on that as opposed to first_name last_name?
{username}@domain.com
09-23-2015 12:15 AM
I overthought that to but our LDAP name is for example "chrism" not "cman".
09-22-2015 07:57 PM
RegEx isn't supported and won't work in any of the template patterns that create FindMe and device addresses. Instead TMSPE uses attributes to create the various addresses, see the "Creating Address Patterns" section of the TMSPE Deployment Guide starting at the bottom of pg 31 for the different attributes that is supported and used by TMSPE.
09-23-2015 12:14 AM
Okay, so i can´t modify the attributes? Thats bad...
Another thing is that {email} for example does not work. It seems that this is a bug.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide