SOLVED

What happens to user's proxyAddresses when custom domain is removed

%3CLINGO-SUB%20id%3D%22lingo-sub-2751422%22%20slang%3D%22en-US%22%3EWhat%20happens%20to%20user's%20proxyAddresses%20when%20custom%20domain%20is%20removed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2751422%22%20slang%3D%22en-US%22%3E%3CP%3EAssume%20tenant%20has%20two%20custom%20domains%20xyz.com%20and%20mnp.com.%20There%20are%20two%20users%20as%20below.%3C%2FP%3E%3CP%3EName%3A%20Bob%20John%2C%3C%2FP%3E%3CP%3EUPN%3A%20bob%40xyz.com%3C%2FP%3E%3CP%3EEmail%2FPrimary%20SMTP%20address%3A%20%3CA%20href%3D%22mailto%3Abob%40xyz.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ebob%40xyz.com%3C%2FA%3E%3C%2FP%3E%3CP%3EProxyAddresses%3A%20smtp%3A%3CA%20href%3D%22mailto%3Abob%40xyz.onmicrosoft.com%2C%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ebob%40xyz.onmicrosoft.com%2C%3C%2FA%3E%26nbsp%3Bsmtp%3A%3CA%20href%3D%22mailto%3Abob%40mnp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ebob%40mnp.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EName%3A%20Sarah%20Smith%3C%2FP%3E%3CP%3EUPN%3A%20%3CA%20href%3D%22mailto%3Asarah%40mnp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Esarah%40mnp.com%3C%2FA%3E%3C%2FP%3E%3CP%3EEmail%3A%20%3CA%20href%3D%22mailto%3Asarah%40mnp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Esarah%40mnp.com%3C%2FA%3E%3C%2FP%3E%3CP%3EProxyAddresses%3A%20smtp%3Asarah%40xyz.onmicrosoft.com%2C%20smtp%3Asarah%40xyz.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20custom%20domain%20xyz.com%20is%20removed%20from%20this%20tenant%20how%20will%20it%20change%20the%20two%20user%20accounts.%20I%20know%20UPN%20of%20Bob%20will%20need%20to%20be%20changed%20in%20order%20to%20remove%20the%20domain.%20Would%20removing%20the%20domain%20also%20make%20Bob's%20primary%20email%20to%20onmicrosoft.com%20as%20well%20as%20remove%20all%20its%20associated%20proxyAddresses.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2751422%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECustom%20Domain%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2751619%22%20slang%3D%22en-US%22%3ERe%3A%20What%20happens%20to%20user's%20proxyAddresses%20when%20custom%20domain%20is%20removed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2751619%22%20slang%3D%22en-US%22%3EYou%20cannot%20remove%20the%20domain%20*before*%20removing%20any%20properties%20where%20it's%20being%20referenced%2C%20including%20UPN%20and%20proxyaddresses%2C%20so%20you%20have%20to%20make%20those%20changes%20before%20you%20attempt%20the%20removal.%20Including%20setting%20a%20new%20primary%20SMTP%20where%20needed.%3C%2FLINGO-BODY%3E
Frequent Contributor

Assume tenant has two custom domains xyz.com and mnp.com. There are two users as below.

Name: Bob John,

UPN: bob@xyz.com

Email/Primary SMTP address: bob@xyz.com

ProxyAddresses: smtp:bob@xyz.onmicrosoft.com, smtp:bob@mnp.com

 

Name: Sarah Smith

UPN: sarah@mnp.com

Email: sarah@mnp.com

ProxyAddresses: smtp:sarah@xyz.onmicrosoft.com, smtp:sarah@xyz.com

 

If custom domain xyz.com is removed from this tenant how will it change the two user accounts. I know UPN of Bob will need to be changed in order to remove the domain. Would removing the domain also make Bob's primary email to onmicrosoft.com as well as remove all its associated proxyAddress from Sarah's account.

 

 

 

1 Reply
best response confirmed by Trevor_Rusher (Community Manager)
Solution
You cannot remove the domain *before* removing any properties where it's being referenced, including UPN and proxyaddresses, so you have to make those changes before you attempt the removal. Including setting a new primary SMTP where needed.