Forum Discussion
Calendar button missing - On Prem 2016 Exchange
- Mar 30, 2020
I had exactly the same issue as you and have solved it by following OAUTH manual setup to the letter via this doc https://docs.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help?redirectedfrom=MSDN
Get-IntraOrganizationConnector |fl Name,TargetAddressDomains,DiscoveryEndpoint,Enabled
brought no errors but no data. I had previously ran HCW and this completed with no errors (I assumed the hybrid process was fully complete). Exchange 2016 on premises, premium office 365 with licenses applied for exchange online plan. No mailboxes have been migrated, all are on premises. On premises existing Mail contacts and groups WERE visible in exchange online admin. AD Azure connect was already run with optional hybrid exchange enabled. Calendar button did not appear in teams. Teams worked otherwise.
So I ran the manual configuration of OAUTH from that link and calendar button started to appear after 30 mins. Again, these are ALL on premises mailboxes, we have not migrated any mailboxes yet.
One caveat, at the end of the process you need to create an AD object - this object had already been created so it looked like HCW had at least tried to make the OAUTH link but hadnt fully completed it.
you must have an Oauth configuration for the calendar to appear. To do this either enable a Full Hybrid solution which will configure Oauth for you, or exchange minimal hybrid +
https://docs.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help
- Spiros KarampinisApr 11, 2020Brass Contributor
David Bargna please allow me to add my 2 cents.
You don't really need Exchange full or minimal to get the calendar button in Microsoft Teams.
It is enough if you have
- Azure AD Connect, active Exchange Hybrid under sync options
- Autodiscover entry in Public DNS and Exchange Server accessible from MS Teams IP addresses
- OAUTH configured as described in the following article, steps 1-5 should be enough
- https://docs.microsoft.com/exchange/configure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help
Please let me know if your issue is solved and mark also the reply that helped you as correct.
Thank you
Spikar
- Bruce21Apr 27, 2021Copper ContributorHello Sir,
Any idea why I'm getting this error when I try to export auth cert from step 3?
You cannot call a method on a null-valued expression.
At C:\ExportAuthCert.ps1:9 char:1
+ $certBytes = $oAuthCert.Export($certType)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "WriteAllBytes" with "2" argument(s): "Value cannot be null.
Parameter name: bytes"
At C:\ExportAuthCert.ps1:11 char:1
+ [System.IO.File]::WriteAllBytes($CertFile, $certBytes)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException - Shadab1991May 28, 2020Copper ContributorHi there I have same issue calendar button is visible from teams but it could not load the calendar.
I have mixed environment with 2010 and 2016 configured OAuth manually. What do you suggest here ?- Tushar PathakMay 29, 2020
Microsoft
Shadab1991 Please ensure all mailboxes are on Exchange 2016 CU3+. Calendar will not load for mailboxes on 2010. Additionally, check if EwsApplicationAccessPolicy is set to enforce in Get-Casmailbox or Get-organizationConfig. If yes add Teams/* and MicrosoftNinja/* UAs in EWSAllowList.
- rvt20sMay 07, 2020Copper Contributor
Spiros Karampinis
I seem to have this working in our setup with Exchange Hybrid and OAuth - Users can see the on-prem calendar in Teams.We have 4 other domains in our setup and those users cannot see the calendar. Is there additional config required to enabled users with different domains to see the calendar. They all have mailboxes on the same Exch Server.
Thanks
- Spiros KarampinisMay 11, 2020Brass Contributor
rvt20s glad that the solution worked.
Regarding the additional domains yes further steps are necessary.To open your calendar in MS Teams, MS Teams backend services will run an autodiscover process for the domain fo the user. If you have configured everything only for your main domain, step 5 should be repeated for the additional domains. Keep in mind that you also need an autodiscover.DOMAIN.com entry in your Public DNS that points to your Exchange server. If your Exchange server doesn't include the other domains in the certificate with the entry autodiscover.DOMAIN.com then you should create SRV records for each domain and remove the A record that points to autodiscover. With SRV record you will redirect the connection to your public domain that is included in the certificate of the exchange server without issue.
Please let me know if everything worked as excepted.Kind regards
Spikar
- jelmermodApr 03, 2020Copper Contributor
David Bargna thanks! It's finally working after enabling Oauth 🙂