Home

Office 365 Groups will now have unique mailNickname

%3CLINGO-SUB%20id%3D%22lingo-sub-97416%22%20slang%3D%22en-US%22%3EOffice%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97416%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe've%20completed%20an%20enhancement%20with%20the%20Azure%20Active%20Directory%20team%20which%20will%20now%20enforce%20mailNickname%20to%20be%20unique%20across%20all%20Office%20365%20Groups%20within%20a%20tenant.%20This%20will%20help%20ensure%20resiliency%20across%20the%20tenant%26nbsp%3Band%20facilitate%20smooth%20sync%20scenarios%20to%20on-premises.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20Office%20365%20Groups%20are%20created%2C%20the%20name%20provided%20is%20used%20for%20mailNickname%20as%20well%20as%20the%20first%20portion%20of%20SMTP%20Address.%20Previously%2C%20Office%20365%20Group%20creation%20did%26nbsp%3Bnot%20enforce%20the%20mailNickname%20to%20be%20unique%20across%20Office%20365%20Groups.%20If%20multiple%20Office%20365%20Groups%20contain%20the%20same%20mailNickname%2C%20customers%20can%20encounter%20collisions%20when%20these%20groups%20are%20sync%E2%80%99d%20to%20on-premises%20via%20AAD%20Connect.%20In%20Azure%20Active%20Directory%2C%20an%20enforcement%20has%20been%20placed%20on%20the%20mailNickname%20property%20so%20that%20it%20will%20be%20unique%20across%20Office%20365%20Groups.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPreviously%20created%20Office%20365%20Groups%20that%20have%20duplicate%20mailNicknames%20will%20not%20be%20affected.%20If%20a%20user%20attempts%20to%20modify%20the%20mailNickname%20property%20through%20PowerShell%20or%20other%20means%2C%20the%20service%20will%20verify%20whether%20the%20new%20mailNickname%20being%20specified%20is%20unique.%20If%20not%2C%20the%20modification%20will%20be%20rejected.%20Additionally%2C%20a%20user%20can%20create%20an%20Office%20365%20Group%20that%20has%20the%20same%20mailNickname%20as%20an%20Office%20365%20Group%20that%20has%20been%20soft%20deleted.%20If%20a%20user%20attempts%20to%20restore%20the%20soft%20deleted%20group%2C%20they%20will%20be%20prompted%20to%20change%20the%20mailNickname.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMike%20McLean%3C%2FP%3E%0A%3CP%3EOffice%20365%20Groups%3C%2FP%3E%0A%3CP%3ESenior%20Program%20Manager%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-97416%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106669%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106669%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20has%20committed%20to%20delivering%20a%20naming%20policy%20for%20Office%20365%20Groups%20that%20might%20help.%20Hopefully%2C%20we%20will%20see%20news%20of%20this%20at%20Ignite.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20now%2C%20if%20you%20want%20to%20be%20sure%20that%20Office%20365%20Groups%20created%20using%20Outlook%2C%20OWA%2C%20the%20Outlook%20and%20Groups%20mobile%20app%2C%20or%20the%20New-UnifiedGroup%20cmdlet%20have%20names%20that%20meet%20a%20certain%20standard%2C%20you%20can%20use%20the%20Exchange%20Online%20distribution%20group%20naming%20policy.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj218693%2528v%3Dexchg.150%2529.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj218693%2528v%3Dexchg.150%2529.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20policy%20does%20not%20apply%20to%20groups%20created%20by%20admins%20or%20those%20created%20by%20Teams%2C%20Stream%2C%20or%20other%20Groups-enabled%20applications.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-106625%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-106625%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20create%20Office%20365%20groups%20created%20via%20Team%20Sites%2C%20Planner%2C%20Yammer%2C%20Stream%20and%20Teams%20with%20a%20unique%20display%20name%3F%20If%20yes%2C%20How%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20would%20like%20to%20prevent%20the%20creation%20of%20Office%20365%20groups%20with%20duplicate%20display%20names%20in%20the%20organization.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-98973%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-98973%22%20slang%3D%22en-US%22%3E%3CP%3EI%20really%20don't%20think%20you%20need%20anything%20more%20complicated%20than%20to%20check%20all%20mail-enabled%20objects%20(rather%20than%20just%20Groups%20as%20you%20do%20today)%20to%20detect%20duplicate%20aliases...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-98431%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-98431%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20a%20great%20observation.%20For%20this%20first%20step%2C%20we're%20mainly%20focusing%20on%20enforcing%20uniqueness%20across%20cloud-managed%20Office%20365%20Groups.%20One%20approach%20we've%20seen%20customers%20use%20is%20to%20build%20a%20universal%20Alias%20Reservation%20List%20that%20guarantees%20uniqueness%20across%20all%20their%20services%20that%20create%20mail-enabled%20properties%2C%20including%20on-premises.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97812%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97812%22%20slang%3D%22en-US%22%3E%3CP%3EExactly.%20The%20alias%20should%20be%20unique%20across%20all%20mail-enabled%20objects%20in%20the%20tenant.%26nbsp%3B%20If%20I%20have%20an%20ADFS%20replying%20party%20passing%20mailnickname%2Falias%20as%20a%20claim%20for%20example%2C%20any%20dups%20will%20cause%20problems%2C%20just%20to%20give%20another%20example%20beyone%20Tony's%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97773%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97773%22%20slang%3D%22en-US%22%3EShouldn't%20Groups%20make%20sure%20that%20the%20mail%20nickname%20is%20unique%20across%20all%20types%20of%20mail-enabled%20objects%20rather%20than%20just%20inside%20its%20own%20set%3F%20Having%20a%20synchronisation%20clash%20with%20a%20DL%20(for%20instance)%20could%20also%20be%20a%20problem...%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97495%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97495%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20great%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97489%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97489%22%20slang%3D%22en-US%22%3EThanks!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97488%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97488%22%20slang%3D%22en-US%22%3E%3CP%3ESuper%20a%20lot%20of%20people%20were%20waiting%20for%20this!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97481%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97481%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20for%20the%20heads-up.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800376%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800376%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20change%20is%20messing%20with%20some%20of%20our%20provisioning%20techniques.%20The%20MailNickName%20%2F%20Alias%20was%20a%20'sure%20thing'%20property%20to%20use%20across%20ecosystems.%20In%20the%20%3CSPAN%3EAzure%20AD%2C%20%3C%2FSPAN%3EExchange%20Online%20and%20SharePoint%20Online%20realms%20that%20single%20property%20was%20unifying%20everything.%20All%20of%20a%20sudden%20this%20property%20is%20changed%20to%20a%20guid%20behind%20the%20scenes%20with%20no%20apparent%20rhythm%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestion%3A%20What%20unifying%20property%20should%20now%20be%20used%20that%20can%20be%20created%20and%20queried%20in%20Azure%20AD%2C%20Exchange%20Online%20and%20SharePoint%20Online%3F%20BTW%20It%20was%20suggested%20to%20me%20to%20use%20the%20Exchange%20Online%20ExtensionAttribute1-15%20properties%2C%20but%20these%20are%20not%20queryable%20(to%20my%20knowledge)%20in%20Azure%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestion2%3A%20Can%20we%20disable%20the%20automatic%20changing%20of%20%3CSPAN%3EMailNickName%20%2F%20Alias%20by%20backend%20processes%20to%20guids%20and%20be%20in%20charge%20ourselves%3F%20Ie.%20manage%20the%20Alias%20ourselves%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800435%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800435%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F279231%22%20target%3D%22_blank%22%3E%40SjoerdV%3C%2FA%3E%26nbsp%3BYou're%20right%20that%20the%20Exchange%20extension%20properties%20are%20unavailable%20in%20Azure%20AD.%20They're%20very%20much%20an%20Exchange%20construct.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20to%20me%20that%20GUIDs%20are%20the%20only%20way%20to%20ensure%20uniqueness%20across%20Office%20365%2C%20and%20that's%20why%20the%20developers%20use%20GUIDs%20everywhere.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801084%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801084%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3EThanks%20Tony.%3C%2FP%3E%3CP%3EI%20love%20guids%20as%20well%20%3B)if%20they%20are%20used%20consistently....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConsider%20the%20fact%20that%20a%20MS%20Team%20consist%20of%20(among%20others)%201)%20a%20Azure%20AD%20Group%2C%202)%20Office%20365%20Group%20(EXO)%20and%203)%20a%20SharePoint%20Online%20site.%20Where%20can%20I%20find%20the%20guid%20when%20in%20SPO%20context%3F%20You%20would%20not%20suggest%20using%20it%20as%20part%20of%20the%20Uri%3F%20(ie.%20https%3A%2F%2F%5Btenant%5D.sharepoint.com%2Fsites%2F%3CFONT%3E42e985d2-e9a3-49fd-a0b8-96a8169461bb%3C%2FFONT%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20fact%20that%20if%20I%20create%20a%20Group%2FTeam%20by%20specifiying%20the%20Alias%20(forcefully)%20and%20it%20gets%20overriden%20by%20backend%20processes%20that%20is%20running%20irregularly%20is%20scary%2C%20we%20now%20never%20know%20when%20the%20alias%20will%20be%20changing%20and%20if%20I%20had%20specified%20it%20in%20the%20first%20place%2C%20why%20is%20it%20being%20overridden%20at%20all%3F%20Is%20the%20development%20team%20not%20trusting%20me%20in%20keeping%20the%20Aliases%20unique%3F%20If%20the%20development%20team%20want%20something%20unique%20why%20not%20create%20a%20new%20property%20for%20that%20and%20leave%20us%20our%20Alias%2FMailNickName%3F%20Btw.%20When%20I%20specify%20a%20guid%20myself%20'on%20creation'%2C%20will%20it%20stay%20that%20particular%20guid%2C%20or%20will%20the%20backend%20process%20change%20it%20to%20a%20different%20guid%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFinally%2C%20consider%20the%20DTAP%20question.%20We%20always%20create%20a%20Team%20in%20a%20totally%20seperate%20Azure%2BO365%20TEST%20tenant%20programmatically%20first%2C%20check%20that%20the%20provisioning%20tool%20does%20not%20return%20any%20errors%20and%20checking%20Targetted%20Release%20compatibility%2C%20before%20creating%20it%20in%20the%20PROD%20tenant.%20If%20I%20just%20use%20the%20same%20guid%20in%20TEST%20as%20in%20PROD%20(to%20keep%20a%20reference%20between%20the%20groups)%2C%20what%20is%20now%20the%20difference%20between%20creating%20them%20with%20a%20string%20as%20a%20unique%20characteristic%20and%20a%20duplicate%20guid%3F%20Absolutely%20nothing%2C%20right%3F%3C%2FP%3E%3CP%3EWill%20the%20product%20team%20eventually%20prevent%20duplicate%20guids%20across%20tenants%3F%20That%20would%20be%20something!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801491%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801491%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F279231%22%20target%3D%22_blank%22%3E%40SjoerdV%3C%2FA%3E%26nbsp%3BIf%20you%20run%20Get-SPOSite%20-Detail%20you'll%20get%20the%20Group%20identifier%20(GroupId)%20returned.%20That%20can%20be%20used%20to%20link%20to%20the%20team%2C%20Office%20365%20group%2C%20or%20Azure%20AD%20Group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20I%20am%20interested%20in%20your%20assertion%20that%20background%20processes%20are%20overriding%20the%20Alias%20property%20for%20groups.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20just%20checked%20all%20the%20groups%20in%20my%20tenant%2C%20and%20I%20don't%20see%20a%20single%20%22strange%22%20alias%2C%20apart%20from%20one%20group%20created%20in%20Teams%20when%20the%20New-Team%20cmdlet%20was%20run%20without%20an%20Alias%20being%20specified.%20When%20this%20happens%2C%20Teams%20creates%20an%20alias%20based%20on%20a%20GUID.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-803516%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-803516%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3EOK%2C%20thanks%20for%20the%20tip%20about%20the%20Group%20Identifier%20on%20the%20Site%20object%20of%20a%20Group..%20I%20checked%20but%20this%20identifier%20is%20an%20empty%20guid%20(for%20all%20Groups%2C%20tested%20on%20multiple%20tenants)%20as%20it%20seems%20(I%20use%20version%26nbsp%3B%3CFONT%3E'16.0.9119.1200'%20of%20the%20'Microsoft.Online.SharePoint.PowerShell'%20module%20btw)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3ERelatedGroupId%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%2000000000-0000-0000-0000-000000000000%3CBR%20%2F%3EGroupId%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%2000000000-0000-0000-0000-000000000000%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20create%20Groups%2FTeams%20by%20using%20SPO%20CSOM%20from%20%3CSPAN%3EPnP%3C%2FSPAN%3E%2C%20and%20the%20Alias%20is%20always%20used%20in%20this%20process.%20like%20so%3A%26nbsp%3B%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%23provisioning-modern-team-sites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%23provisioning-modern-team-sites%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20to%20do%20it%20like%20this%20because%20all%20other%20Team%2FGroup%20creation%20endpoints%20do%20not%20create%20the%20SharePoint%20Site%20immediately%2C%20and%20we%20need%20some%20basic%20things%20configured%20in%20the%20Site%20as%20soon%20as%20the%20Group%20gets%20created.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20also%20set%20Azure%20AD%20%3CSPAN%3Esettings%2Fpolicies%3C%2FSPAN%3E%2C%20Exchange%20Online%26nbsp%3B%3CSPAN%3Esettings%2Fpolicies%2C%20%3C%2FSPAN%3ETeams%20settings%2Fpolicies%20and%20Compliance%20r%3CSPAN%3Eetention%20policies%20by%20using%20the%20object%20model%20during%20this%20provisioning%20process%20(using%20the%20Alias%20as%20an%20identifier)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAfter%20this%20has%20all%20been%20set%2C%20at%20a%20certain%20point%20in%20time%20(could%20be%20a%20day%2C%20or%20more)%20the%20Alias%20changes%20by%20backend%20processes%20to%20a%20guid%2C%20I%20have%20no%20idea%20why%20and%20how%20this%20is%20triggered%20(Maybe%20something%20with%20the%20Compliance%20Center%20Object%20Model%20that%20is%20triggering%20this%20after%20a%20certain%20time%2C%20perhaps%20when%20actually%20creation%20the%20Preservation%20Hold%20Library%3F).%20If%20you%20could%20find%20out%20I%20would%20appreciate%20it%20very%20much.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBTW.%20I%20just%20renamed%20the%20aliases%20all%20back%20to%20the%20ones%20I%20defined%20myself%20by%20using%20powershell%20(Set-UnifiedGroup%20%5Bguid%5D%20-Alias%20%5Bmyownalias%5D)%2C%20but%20I%20expect%20I%20will%20have%20to%20check%20for%20alias%20changes%20and%20repeat%20this%20for%20the%20time%20being.%20(G%3CFONT%3Eet-UnifiedGroup%20%7C%20select%20DisplayName%2CAlias).%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EThanks%20for%20your%20continued%20assistance!%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-804152%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804152%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F279231%22%20target%3D%22_blank%22%3E%40SjoerdV%3C%2FA%3E%26nbsp%3BDid%20you%20include%20the%20-Detailed%20parameter%20to%20Get-SPOSite%3F%20If%20you%20don't%2C%20you%20won't%20see%20the%20group%20identifier%20information.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECreating%20a%20group%20with%20New-UnifiedGroup%20or%20New-Team%20used%20to%20experience%20a%20delay%20in%20provisioning%20the%20SPO%20Site.%20That%20delay%20is%20minimal%20today.%20Perhaps%20you%20should%20revert%20to%20these%20methods%20where%20(AFAIK)%20the%20alias%20is%20preserved.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805108%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Groups%20will%20now%20have%20unique%20mailNickname%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805108%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3EYes%2C%20I%20did%2C%20using%20both%20the%20MS%20Powershell%20and%20PnP%20Powershell%2C%20on%20multiple%20tenants%2C%20the%20show%20an%20emtpy%20guid%20only...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20advice%20on%20changing%20the%20Creation%20call%2C%20I%20might%20consider%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20all%20your%20advice%20in%20this%20thread%2C%20much%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Mike McLean (OFFICE)
Microsoft

Hi all,

 

We've completed an enhancement with the Azure Active Directory team which will now enforce mailNickname to be unique across all Office 365 Groups within a tenant. This will help ensure resiliency across the tenant and facilitate smooth sync scenarios to on-premises.

 

When Office 365 Groups are created, the name provided is used for mailNickname as well as the first portion of SMTP Address. Previously, Office 365 Group creation did not enforce the mailNickname to be unique across Office 365 Groups. If multiple Office 365 Groups contain the same mailNickname, customers can encounter collisions when these groups are sync’d to on-premises via AAD Connect. In Azure Active Directory, an enforcement has been placed on the mailNickname property so that it will be unique across Office 365 Groups.

 

Previously created Office 365 Groups that have duplicate mailNicknames will not be affected. If a user attempts to modify the mailNickname property through PowerShell or other means, the service will verify whether the new mailNickname being specified is unique. If not, the modification will be rejected. Additionally, a user can create an Office 365 Group that has the same mailNickname as an Office 365 Group that has been soft deleted. If a user attempts to restore the soft deleted group, they will be prompted to change the mailNickname.

 

Mike McLean

Office 365 Groups

Senior Program Manager

17 Replies

thanks for the heads-up.

Super a lot of people were waiting for this!

Shouldn't Groups make sure that the mail nickname is unique across all types of mail-enabled objects rather than just inside its own set? Having a synchronisation clash with a DL (for instance) could also be a problem...

Exactly. The alias should be unique across all mail-enabled objects in the tenant.  If I have an ADFS replying party passing mailnickname/alias as a claim for example, any dups will cause problems, just to give another example beyone Tony's .

This is a great observation. For this first step, we're mainly focusing on enforcing uniqueness across cloud-managed Office 365 Groups. One approach we've seen customers use is to build a universal Alias Reservation List that guarantees uniqueness across all their services that create mail-enabled properties, including on-premises.

I really don't think you need anything more complicated than to check all mail-enabled objects (rather than just Groups as you do today) to detect duplicate aliases...

Is it possible to create Office 365 groups created via Team Sites, Planner, Yammer, Stream and Teams with a unique display name? If yes, How?

 

We would like to prevent the creation of Office 365 groups with duplicate display names in the organization.

Microsoft has committed to delivering a naming policy for Office 365 Groups that might help. Hopefully, we will see news of this at Ignite.

 

For now, if you want to be sure that Office 365 Groups created using Outlook, OWA, the Outlook and Groups mobile app, or the New-UnifiedGroup cmdlet have names that meet a certain standard, you can use the Exchange Online distribution group naming policy. https://technet.microsoft.com/en-us/library/jj218693%28v=exchg.150%29.aspx?f=255&MSPPError=-21472173...

 

This policy does not apply to groups created by admins or those created by Teams, Stream, or other Groups-enabled applications.

This change is messing with some of our provisioning techniques. The MailNickName / Alias was a 'sure thing' property to use across ecosystems. In the Azure AD, Exchange Online and SharePoint Online realms that single property was unifying everything. All of a sudden this property is changed to a guid behind the scenes with no apparent rhythm to it.

 

Question: What unifying property should now be used that can be created and queried in Azure AD, Exchange Online and SharePoint Online? BTW It was suggested to me to use the Exchange Online ExtensionAttribute1-15 properties, but these are not queryable (to my knowledge) in Azure AD.

 

Question2: Can we disable the automatic changing of MailNickName / Alias by backend processes to guids and be in charge ourselves? Ie. manage the Alias ourselves?

 

Thanks!

@SjoerdV You're right that the Exchange extension properties are unavailable in Azure AD. They're very much an Exchange construct.

 

It seems to me that GUIDs are the only way to ensure uniqueness across Office 365, and that's why the developers use GUIDs everywhere.

@Tony RedmondThanks Tony.

I love guids as well ;) if they are used consistently....

 

Consider the fact that a MS Team consist of (among others) 1) a Azure AD Group, 2) Office 365 Group (EXO) and 3) a SharePoint Online site. Where can I find the guid when in SPO context? You would not suggest using it as part of the Uri? (ie. https://[tenant].sharepoint.com/sites/42e985d2-e9a3-49fd-a0b8-96a8169461bb).

 

The fact that if I create a Group/Team by specifiying the Alias (forcefully) and it gets overriden by backend processes that is running irregularly is scary, we now never know when the alias will be changing and if I had specified it in the first place, why is it being overridden at all? Is the development team not trusting me in keeping the Aliases unique? If the development team want something unique why not create a new property for that and leave us our Alias/MailNickName? Btw. When I specify a guid myself 'on creation', will it stay that particular guid, or will the backend process change it to a different guid?

 

Finally, consider the DTAP question. We always create a Team in a totally seperate Azure+O365 TEST tenant programmatically first, check that the provisioning tool does not return any errors and checking Targetted Release compatibility, before creating it in the PROD tenant. If I just use the same guid in TEST as in PROD (to keep a reference between the groups), what is now the difference between creating them with a string as a unique characteristic and a duplicate guid? Absolutely nothing, right?

Will the product team eventually prevent duplicate guids across tenants? That would be something!

 

@SjoerdV If you run Get-SPOSite -Detail you'll get the Group identifier (GroupId) returned. That can be used to link to the team, Office 365 group, or Azure AD Group.

 

But I am interested in your assertion that background processes are overriding the Alias property for groups.

 

I just checked all the groups in my tenant, and I don't see a single "strange" alias, apart from one group created in Teams when the New-Team cmdlet was run without an Alias being specified. When this happens, Teams creates an alias based on a GUID.

@Tony RedmondOK, thanks for the tip about the Group Identifier on the Site object of a Group.. I checked but this identifier is an empty guid (for all Groups, tested on multiple tenants) as it seems (I use version '16.0.9119.1200' of the 'Microsoft.Online.SharePoint.PowerShell' module btw)

 

RelatedGroupId                              : 00000000-0000-0000-0000-000000000000
GroupId                                     : 00000000-0000-0000-0000-000000000000

 

We create Groups/Teams by using SPO CSOM from PnP, and the Alias is always used in this process. like so: https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-p...

 

We have to do it like this because all other Team/Group creation endpoints do not create the SharePoint Site immediately, and we need some basic things configured in the Site as soon as the Group gets created.

 

We also set Azure AD settings/policies, Exchange Online settings/policies, Teams settings/policies and Compliance retention policies by using the object model during this provisioning process (using the Alias as an identifier)

 

After this has all been set, at a certain point in time (could be a day, or more) the Alias changes by backend processes to a guid, I have no idea why and how this is triggered (Maybe something with the Compliance Center Object Model that is triggering this after a certain time, perhaps when actually creation the Preservation Hold Library?). If you could find out I would appreciate it very much.

 

BTW. I just renamed the aliases all back to the ones I defined myself by using powershell (Set-UnifiedGroup [guid] -Alias [myownalias]), but I expect I will have to check for alias changes and repeat this for the time being. (Get-UnifiedGroup | select DisplayName,Alias).

 

Thanks for your continued assistance!

 

@SjoerdV Did you include the -Detailed parameter to Get-SPOSite? If you don't, you won't see the group identifier information.

 

Creating a group with New-UnifiedGroup or New-Team used to experience a delay in provisioning the SPO Site. That delay is minimal today. Perhaps you should revert to these methods where (AFAIK) the alias is preserved.

@Tony RedmondYes, I did, using both the MS Powershell and PnP Powershell, on multiple tenants, the show an emtpy guid only...

 

Thanks for the advice on changing the Creation call, I might consider it.

 

Thanks again for all your advice in this thread, much appreciated!

Related Conversations