SOLVED

MS Teams Channel email validation

%3CLINGO-SUB%20id%3D%22lingo-sub-1471020%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20Channel%20email%20validation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1471020%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20depends%20on%20the%20region%20where%20the%20tenant%20is%20created%2C%20so%20for%20US%20tenants%20it%20will%20be%20us.teams.ms%2C%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1470932%22%20slang%3D%22en-US%22%3EMS%20Teams%20Channel%20email%20validation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1470932%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20integrating%20an%20option%20on%20my%20app%20to%20send%20updates%20to%20teams%20channel%20via%20email.%20I%20created%20a%20channel%20and%20got%20the%20email%20address%20like%20this%3A%26nbsp%3Bxxxxx.company.onmicrosoft.com%40emea.teams.ms%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESo%20I%20was%20just%20thinking%20if%20I%20have%20to%20add%20a%20validation%20regex%20to%20this%20email%20is%20it%20fine%20if%20I%20use%20something%20like%3A%3C%2FP%3E%3CPRE%3E%2F%5E(%5B%5Cw%5C.%5D%2B)%40emea.teams.ms%24%2F%3C%2FPRE%3E%3CP%3Eor%20this%20domain%2Fsubdomain%20(emea.teams.ms)%20can%20change%20in%20some%20instances%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1470932%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

I am integrating an option on my app to send updates to teams channel via email. I created a channel and got the email address like this: xxxxx.company.onmicrosoft.com@emea.teams.ms


So I was just thinking if I have to add a validation regex to this email is it fine if I use something like:

/^([\w\.]+)@emea.teams.ms$/

or this domain/subdomain (emea.teams.ms) can change in some instances?

1 Reply
Highlighted
Best Response confirmed by saurabhiam (Occasional Visitor)
Solution

It depends on the region where the tenant is created, so for US tenants it will be us.teams.ms, etc.