SOLVED

Calendar tab is missing in Teams for on-premise users with subdomain as primary SMTP address

%3CLINGO-SUB%20id%3D%22lingo-sub-1445549%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20tab%20is%20missing%20in%20Teams%20for%20on-premise%20users%20with%20subdomain%20as%20primary%20SMTP%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1445549%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F274924%22%20target%3D%22_blank%22%3E%40Shimura512%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20calendar%20in%20Teams%20in%20Exchange%20Hybrid%20is%20all%20about%20OAuth%20being%20properly%20enabled%2C%20which%20of%20course%20you%20have%20already%20done.%20I%20don't%20come%20across%20the%20presence%20of%20sub-domains%20too%20often%2C%20and%20certainly%20not%20in%20this%20context%2C%20so%20I%20can't%20comment%20to%20their%20expected%20behaviour%20here.%26nbsp%3B%20With%20ADFS%20in%20the%20mix%20too%2C%20you%20may%20be%20correct%20that%20you%20need%20to%20just%20give%20it%20some%20time%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20in%20the%20process%20of%20migrating%20your%20mailboxes%20to%20Exchange%20Online%3F%26nbsp%3B%20Teams%20works%20best%20with%20Exchange%20Online%20mailboxes%20so%20it%20may%20be%20worth%20testing%20a%20migration%20of%20one%20of%20the%20sub-domain%20mailboxes%20to%20EOL%20and%20you%20will%20very%20likely%20find%20your%20missing%20calendar%20appears.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInterested%20to%20know%20how%20you%20progress%20with%20this%20one%20so%20please%20do%20let%20us%20know%20here%20how%20you%20get%20on.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1450383%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20tab%20is%20missing%20in%20Teams%20for%20on-premise%20users%20with%20subdomain%20as%20primary%20SMTP%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1450383%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EWith%20ADFS%20in%20the%20mix%20too%2C%20you%20may%20be%20correct%20that%20you%20need%20to%20just%20give%20it%20some%20time%3F%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3ESorry%2C%20doesn't%20help...%20Calendar%20tab%20have%20not%20appeared%20for%20user2%40sub.domain.com%20(lives%20in%20Exchange%20Server)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EAre%20you%20in%20the%20process%20of%20migrating%20your%20mailboxes%20to%20Exchange%20Online%3F%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3ENot%20yet.%3CBR%20%2F%3EWe%20are%20in%20the%20process%20of%20setting%20up%20a%20hybrid%20configuration%2C%20so%20that%20we%20can%20move%20the%20testing%20team%20to%20the%20cloud%20in%20the%20nearest%20future.%3CBR%20%2F%3EBut%20before%20that%2C%20we%20must%20implement%20the%20%22basic%22%20functionality%20(mail%20flow%2C%20calendar%2C%20s4b%2Fteams%20federation%20and%20interoperability%2C%20etc...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3ETeams%20works%20best%20with%20Exchange%20Online%20mailboxes%20so%20it%20may%20be%20worth%20testing%20a%20migration%20of%20one%20of%20the%20sub-domain%20mailboxes%20to%20EOL%20and%20you%20will%20very%20likely%20find%20your%20missing%20calendar%20appears.%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3EYes%2C%20I%20know.%20But%20as%20for%20now%20all%20our%20mailboxes%20homed%20in%20Exchange%20Server.%20And%20that's%20why%20we%20need%20to%20provide%20all%20users%20with%20hybrid%20features.%20Including%20the%20team%20with%20%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%20primary%20domain.%3C%2FP%3E%3CP%3EI%20just%20tested%20the%20user4%40sub.domain.com%20(which%20has%20been%20migrated%20to%20Exchange%20Online%20on%20Friday).%20The%20calendar%20works%20like%20a%20charm.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EInterested%20to%20know%20how%20you%20progress%20with%20this%20one%20so%20please%20do%20let%20us%20know%20here%20how%20you%20get%20on.%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3EI'll%20try%20to%20post%20periodic%20updates%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1443130%22%20slang%3D%22en-US%22%3ECalendar%20tab%20is%20missing%20in%20Teams%20for%20on-premise%20users%20with%20subdomain%20as%20primary%20SMTP%20address%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1443130%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20dear%20community!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20name%20is%20Dmitriy.%3C%2FP%3E%3CP%3EOur%20team%20got%20stuck%20with%20unavailable%20calendar%20(it's%20just%20not%20showing)%20in%20Microsoft%20Teams%20for%20users%20who%20has%20%3CSPAN%3Esubdomain%3C%2FSPAN%3E%20as%20a%20primary%20SMTP%20address.%3C%2FP%3E%3CP%3EWe've%20spent%20a%20lot%20of%20time%20trying%20to%20investigate%20why%20it%20is%20not%20working%2C%20so%20I%20decided%20to%20ask%20you%20here%20before%20disturbing%20Microsoft%20support.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat%20do%20we%20have%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3EOffice%20365%20tenant%20and%20in-premise%20infrastructure.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EVerified%20primary%20SMTP%20domain%2C%20let's%20say%20it%20is%20%3C%2FSPAN%3E%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E%3CSPAN%3E.%20And%20verified%20subdomain%2C%20let's%20say%20it%20is%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E.%20Both%20domains%20are%20federated.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EConfigured%20Azure%20AD%20Connect%20with%20ADFS%20Auth.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EImplemented%20Exchange%20Hybrid%20setup%2C%20including%20OAuth%20between%20Exchange%20Online%20and%20Exchange%20Server%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EOAuth%20is%20configured%20for%20the%20company's%20primary%20domain%2C%20which%20is%20%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E.%20I%20tried%20to%20add%20the%20second%20AuthServer%20for%20the%20%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%20but%20Exchange%20told%20me%20that%20server%20is%20already%20exists.%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EI%20also%20tried%20to%20get%20JSON%20data%20for%20both%20domains%20-%20the%20returned%20data%20is%20the%20same.%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%205.%20Some%20users%3A%20%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3Euser1%40domain.com%20(lives%20in%20Exchange%20Server)%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3Euser2%40sub.domain.com%20(lives%20in%20Exchange%20Server)%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3Euser3%40domain.com%20(lives%20in%20Exchange%20Online)%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3Euser4%40sub.domain.com%20(lives%20in%20Exchange%20Online)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%3E6.%20Domain%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%20%3C%2FSTRONG%3E%3CSPAN%3Eexists%20only%20in%20DNS%20and%20Exchange%20Server.%20It%20does't%20exist%20in%20Active%20Directory.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUser1%20%3C%2FSTRONG%3Eand%20%3CSTRONG%3EUser3%20%3C%2FSTRONG%3Ewere%20created%20with%20%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E%20as%20a%20primary%20SMTP%20domain.%3C%2FP%3E%3CP%3E%3CSTRONG%3EUser2%20%3C%2FSTRONG%3Eand%3CSTRONG%3E%20User4%20%3C%2FSTRONG%3Ewere%20created%20with%3CSTRONG%3E%20sub.domain.com%20%3C%2FSTRONG%3Eas%20a%20primary%20SMTP%20domain.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ESIP%20Domain%20is%20the%20same%20for%20all%20users.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECurrently%20we%20don't%20have%20Hybrid%20setup%20for%20Skype%20for%20Business%2FTeams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat%20works%20as%20expected%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3EMail%20delivery%20(through%20hybrid%20send%2Freceive%20connectors)%3A%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CUL%3E%3CLI%3E%3CSPAN%3EFrom%20Exchange%20on-premise%20to%20Exchange%20online%20(for%20both%20domain%20and%20subdomain)%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EFrom%20Exchange%20online%20to%20Exchange%20on-premise%20(for%20both%20domain%20and%20subdomain)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3COL%3E%3CLI%3E%3CSPAN%3ECalendar%20tab%20exists%20in%20Microsoft%20Teams%20client%20(both%20Web%20and%20Desktop)%20for%20all%20users%20with%20%3C%2FSPAN%3E%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E%3CSPAN%3E%20primary%20domain%20who%20live%20either%20on-premise%20or%20online.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ECalendar%20tab%20exists%20in%20Microsoft%20Teams%20client%20(both%20Web%20and%20Desktop)%20for%20all%20users%20with%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20primary%20domain%20who%20live%20online.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EFree%2FBusy%20sharing%20is%20available%20between%20all%20users%20with%20both%20%3C%2FSPAN%3E%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E%3CSPAN%3E%20and%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20primary%20domains%20who%20live%20either%20on-premise%20or%20online.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EChat%20and%20groups%20in%20Teams%20are%20available%20for%20all%20users%20with%20both%20%3C%2FSPAN%3E%3CSTRONG%3Edomain.com%3C%2FSTRONG%3E%3CSPAN%3E%20and%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20primary%20domain%20who%20live%20either%20on-premise%20or%20online.%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat%20does%20not%20work%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3ECalendar%20is%20not%20showing%20in%20MS%20Teams%20client%20(both%20Web%20and%20Desktop)%20for%20all%20users%20with%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20primary%20domain%20who%20live%20in%20Exchange%20Server%20on-premise.%20Previously%20calendar%20didn't%20work%20for%20all%20users%20in%20primary%20domain%20until%20we%20configured%20OAuth.%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat%20we%20have%20configured%20for%20sub.domain.com%20domain%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3EAdded%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20domain%20as%20federated%20verified%20domain%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmsonline%2Fnew-msolfederateddomain%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmsonline%2Fnew-msolfederateddomain%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EAdded%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%20%3C%2FSTRONG%3E%3CSPAN%3Edomain%20to%20the%20Accepted%20domain%20in%20Exchange%20Server%20under%20the%20%3C%2FSPAN%3E%3CSTRONG%3Email%20flow%20-%20accepted%20domains%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EAdded%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20domain%20to%20the%20Federation%20Trust%20in%20Exchange%20Server%20(including%20successful%20DNS%20verification)%20under%20the%20%3C%2FSPAN%3E%3CSTRONG%3Eorganization%20-%20sharing%20-%20Federation%20Trust%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EAdded%20%3C%2FSPAN%3E%3CSTRONG%3Esub.domain.com%3C%2FSTRONG%3E%3CSPAN%3E%20domain%20to%20the%20Free%2FBusy%20sharing%20in%20ECP%20from%20both%20sides%20(online%20and%20server)%20under%20the%20%3C%2FSPAN%3E%3CSTRONG%3Eorganization%20-%20sharing%20-%20Organization%20Sharing%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EParagraphs%202-4%20were%20performed%20manually%20in%20ECP%20(without%20Hybrid%20Configuration%20Wizard).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EQuestions%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3ECalendar%20in%20Teams%20works%20perfectly%20for%20the%20main%20domain%2C%20but%20doesn't%20work%20for%20the%20subdomain.%20Am%20I%20missed%20something%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EDo%20I%20need%20to%20configure%20something%20else%3F%20If%20so%2C%20could%20you%20tell%20me%20what%20and%20where%20or%20at%20least%20point%20me%20to%20some%20direction%20where%20I%20can%20find%20this%20information%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EDo%20I%20need%20just%20to%20wait%20more%20time%20(maybe%20federation%20trust%20updates%20within%2072%20hours%2C%20for%20example)%3F%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1443130%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hello, dear community!

 

My name is Dmitriy.

Our team got stuck with unavailable calendar (it's just not showing) in Microsoft Teams for users who has subdomain as a primary SMTP address.

We've spent a lot of time trying to investigate why it is not working, so I decided to ask you here before disturbing Microsoft support.

 

What do we have:

  1. Office 365 tenant and in-premise infrastructure.
  2. Verified primary SMTP domain, let's say it is domain.com. And verified subdomain, let's say it is sub.domain.com. Both domains are federated.
  3. Configured Azure AD Connect with ADFS Auth.
  4. Implemented Exchange Hybrid setup, including OAuth between Exchange Online and Exchange Server https://docs.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchan...

OAuth is configured for the company's primary domain, which is domain.com. I tried to add the second AuthServer for the sub.domain.com but Exchange told me that server is already exists.

I also tried to get JSON data for both domains - the returned data is the same.

 

     5. Some users:

  • user1@domain.com (lives in Exchange Server)
  • user2@sub.domain.com (lives in Exchange Server)
  • user3@domain.com (lives in Exchange Online)
  • user4@sub.domain.com (lives in Exchange Online)

     6. Domain sub.domain.com exists only in DNS and Exchange Server. It does't exist in Active Directory.

 

User1 and User3 were created with domain.com as a primary SMTP domain.

User2 and User4 were created with sub.domain.com as a primary SMTP domain.

 

SIP Domain is the same for all users.

Currently we don't have Hybrid setup for Skype for Business/Teams.

 

What works as expected:

  1. Mail delivery (through hybrid send/receive connectors):
  • From Exchange on-premise to Exchange online (for both domain and subdomain)
  • From Exchange online to Exchange on-premise (for both domain and subdomain)
  1. Calendar tab exists in Microsoft Teams client (both Web and Desktop) for all users with domain.com primary domain who live either on-premise or online.
  2. Calendar tab exists in Microsoft Teams client (both Web and Desktop) for all users with sub.domain.com primary domain who live online.
  3. Free/Busy sharing is available between all users with both domain.com and sub.domain.com primary domains who live either on-premise or online.
  4. Chat and groups in Teams are available for all users with both domain.com and sub.domain.com primary domain who live either on-premise or online.

 

What does not work:

  1. Calendar is not showing in MS Teams client (both Web and Desktop) for all users with sub.domain.com primary domain who live in Exchange Server on-premise. Previously calendar didn't work for all users in primary domain until we configured OAuth.

 

What we have configured for sub.domain.com domain:

  1. Added sub.domain.com domain as federated verified domain https://docs.microsoft.com/en-us/powershell/module/msonline/new-msolfederateddomain
  2. Added sub.domain.com domain to the Accepted domain in Exchange Server under the mail flow - accepted domains
  3. Added sub.domain.com domain to the Federation Trust in Exchange Server (including successful DNS verification) under the organization - sharing - Federation Trust
  4. Added sub.domain.com domain to the Free/Busy sharing in ECP from both sides (online and server) under the organization - sharing - Organization Sharing

Paragraphs 2-4 were performed manually in ECP (without Hybrid Configuration Wizard).

 

Questions:

  1. Calendar in Teams works perfectly for the main domain, but doesn't work for the subdomain. Am I missed something?
  2. Do I need to configure something else? If so, could you tell me what and where or at least point me to some direction where I can find this information?
  3. Do I need just to wait more time (maybe federation trust updates within 72 hours, for example)?

 

Thank you.

5 Replies
Highlighted

@Shimura512 

 

So, calendar in Teams in Exchange Hybrid is all about OAuth being properly enabled, which of course you have already done. I don't come across the presence of sub-domains too often, and certainly not in this context, so I can't comment to their expected behaviour here.  With ADFS in the mix too, you may be correct that you need to just give it some time?

 

Are you in the process of migrating your mailboxes to Exchange Online?  Teams works best with Exchange Online mailboxes so it may be worth testing a migration of one of the sub-domain mailboxes to EOL and you will very likely find your missing calendar appears.

 

Interested to know how you progress with this one so please do let us know here how you get on.

Highlighted

@PeterRising 

 

With ADFS in the mix too, you may be correct that you need to just give it some time?

Sorry, doesn't help... Calendar tab have not appeared for user2@sub.domain.com (lives in Exchange Server)

 

Are you in the process of migrating your mailboxes to Exchange Online?

Not yet.
We are in the process of setting up a hybrid configuration, so that we can move the testing team to the cloud in the nearest future.
But before that, we must implement the "basic" functionality (mail flow, calendar, s4b/teams federation and interoperability, etc...).

 

Teams works best with Exchange Online mailboxes so it may be worth testing a migration of one of the sub-domain mailboxes to EOL and you will very likely find your missing calendar appears.

Yes, I know. But as for now all our mailboxes homed in Exchange Server. And that's why we need to provide all users with hybrid features. Including the team with sub.domain.com primary domain.

I just tested the user4@sub.domain.com (which has been migrated to Exchange Online on Friday). The calendar works like a charm.

 

Interested to know how you progress with this one so please do let us know here how you get on.

Thank you.

I'll try to post periodic updates here.

Highlighted
Hello, dear community.
JFYI
Finally, we have managed to solve this issue.
I will post solution here in 1-2 days.
Highlighted
Highlighted
Best Response confirmed by Shimura512 (Occasional Contributor)
Solution

Hello again :)

 

As I mentioned before, we have managed to solve issue with missing Calendar tab in MS Teams client for sub-domain users.

The problem was not so much with OAUTH, but with autodiscover DNS record and Certificate on a reverse-proxy.

 

After 4 weeks long conversation with Microsoft support we figured out this exception:

 

Exception:
Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: Autodiscover blocked a potentially insecure redirection to https://autodiscover.sub.domain.com/autodiscover/autodiscover.xml .
To allow Autodiscover to follow the redirection, use the AutodiscoverUrl (string, AutodiscoverRedirectionUrlValidationCallback) overload.

 

We found this exception after testing Autodiscovery using Test-OAuthConnectivity on Exchange Server against on-premises sub.domain.com mailbox:

 

Test-OAuthConnectivity -Service AutoD -TargetUri https://autodiscover-s.outlook.com/autodiscover/autodiscover.svc -Mailbox "user2@sub.domain.com" -Verbose | fl

 

We had "autodiscover" CNAME record in our DNS for sub.domain.com.

 

These two articles helped us a lot:

  1. https://techcommunity.microsoft.com/t5/exchange-team-blog/configuring-teams-calendar-access-for-exch...
  2. https://docs.microsoft.com/en-us/previous-versions/office/exchange-server-2007-technical-articles/bb...

First of all I added all autodiscover URLs to the OAuth configuration as described here: https://docs.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchan...

 

Previously I added all URLs from these cmdlets:

 

Get-MapiVirtualDirectory | FL server,*url*
Get-WebServicesVirtualDirectory | FL server,*url*
Get-OABVirtualDirectory | FL server,*url*

 

But I feel that was not necessary, because everything worked fine with domain.com even before adding autodiscover URLs.

 

I also tested autodiscover URL using the link from the first article and got insecure connection according to certificate's CNs mismatch.

 

Then, because of the Exception message "Autodiscover blocked a potentially insecure redirection", insecure connection in a previous step and according to the whitepaper (second article) we desided to publish our Exchange server on a separate public IP address and with its own certificate (issued from Let's Encrypt for testing purposes), as we don't have sub.domain.com and *.sub.domain.com CNs in our current certificate on a reverse-proxy.

Also we pointed A autodiscover.sub.domain.com record in DNS to this public IP.

And the Calendar tab appeared in Teams client :)

 

After that, according to MS engineer's comment:

 

There are two supported ways of doing this, either by using a DNS CNAME record or by using a DNS SRV record for _autodiscover._tcp.yourdomain.com.

 

We removed A autodiscover.sub.domain.com record and added SRV record:

 

_autodiscover._tcp.sub.domain.com.    3600   IN SRV  100 1 443 autodiscover.domain.com

 

We checked autodiscover URL for sub.domain.com email address after 4 hours and it worked with redirection to autodiscover.domain.com. Finally, there were no errors about insecure connection.

Calendar tab still existed in Teams client.

 

Then we waited 24 hours. Calendar tab was not disappear.

 

In fact, the problem was much simpler than I thought (misconfigured DNS and/or certificate) but it took 1 month of investigation with Microsoft Support team.

 

I hope this information will help.

 

If you have any questions - please feel free to ask. I'll try to answer :)