Teams is unable to access your Calendar

nettech 171 Reputation points
2024-10-12T12:00:25.67+00:00

Hi,

We switched to Teams from Skype on prem. User are repotting Errors when they click on the calendar in Teams. Our Exchange (2019) is on-prem and will remain on prem for at least a year, but we will start sending emails through 365 in the next month or two. Only Mailboxes and Public folders will stay local.

What steps are required to get teams to talk to user calendars ?

Thanks

Error Code = TokenGenerationFailed

Error Message = Could not generate tokens to connect to the user exchange endpoint returned by AutoDV2.

Exchange | Exchange Server | Other
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-14T04:24:23.16+00:00

    Hi @nettech

    To integrate the Teams service with your installation of Exchange Server, make sure your local Exchange Server environment meets these requirements:

    • Microsoft Teams must be aware whether the mailbox is hosted on Exchange Online, on-premises, or in a hybrid Exchange server deployment.
    • Exchange Online integrates with the on-premises Exchange server environment, as described in What is OAuth authentication?.
    • Additionally, Teams services need to authenticate on behalf of the user to access the mailbox hosted on-premises also using OAuth.

    Based on your case description, your error message indicates that there was a problem when trying to generate a token to connect to the user's Exchange endpoint. This may be related to the OAuth application access token request, please troubleshoot that.

    If you need to troubleshoot the Teams calendar App issue, please follow the steps below:

    Step 1: Verify that Teams Calendar App is enabled

    1. Open Microsoft Teams admin center, go to Users and select View policies for the affected user. Screenshot of Microsoft Teams admin center windows. Assigned polices under Polices tab are listed.
    2. Select the App setup policy assigned to that user. In the example above, the global (Org-Wide default) policy is being used. Confirm that the calendar App (ID ef56c0de-36fc-4ef8-b417-3d82ba9d073c) is displayed. Screenshot of Teams apps setup policies, showing the calendar App.

    If the calendar App is missing, restore it. For more information, see Manage app setup policies in Microsoft Teams.

    Step 2: Verify Teams upgrade Coexistence mode allows Teams meetings

    1. Open the Microsoft Teams admin center.
    2. Go to Users, and select the affected user.
    3. Verify that the Coexistence mode setting is a value other than Skype for Business only or Skype for Business with Teams collaboration. Screenshot shows Coexistence mode option under Account tab in Users item.
    4. If the user Coexistence mode was set to Use Org-wide settings, the default tenant Coexistence mode will be used.
    5. Go to Org-wide settings, and select Teams Upgrade.
    6. Verify that the default Coexistence mode setting is a value other than Skype for Business only or Skype for Business with Teams collaboration. Screenshot shows the Coexistence mode setting under Teams upgrade.

    Step 3: Verify that Teams isn't blocked from accessing EWS for the entire organization

    Run this Exchange PowerShell command to check whether the parameter EwsApplicationAccessPolicy was set to EnforceAllowList for the entire organization:

    Get-OrganizationConfig
    

    If the parameter was set to EnforceAllowList, only clients that are listed in EwsAllowList are allowed to access EWS.

    Make sure that MicrosoftNinja/, Teams/, and SkypeSpaces/ are listed as array members of the EwsAllowList parameter. If they aren't, run this command to add them:

    Set-OrganizationConfig -EwsApplicationAccessPolicy
    

    If the EwsEnabled parameter is set to False, you have to set it to True or Null (blank). Otherwise, the Teams service will be blocked from accessing EWS.

    Step 4: Verify that Teams isn't blocked from accessing EWS for the affected user

    Run this Exchange PowerShell command to check whether the EwsApplicationAccessPolicy parameter was set to EnforceAllowList for the user mailbox:

    Get-CASMailbox
    

    If the parameter was set to EnforceAllowList, only clients that are listed in EwsAllowList are allowed to access EWS.

    Make sure that MicrosoftNinja/, Teams/, and SkypeSpaces/ are listed as array members of the EwsAllowList parameter. If they aren't, run this Exchange PowerShell command to add them:

    PowerShellCopy

    Set-CASMailbox
    

    If the EwsEnabled parameter is set to False, you have to set it to True. Otherwise, the Teams service will also be blocked from accessing EWS.

    Step 5: Verify that the Microsoft Teams Calendar App test is successful

    1. Ask the user to go to the Microsoft Remote Connectivity Analyzer.
    2. Input the requested information.
    3. Select the Perform Test button to start the Microsoft Teams Calendar App test.

    If the test fails, you should attempt to resolve the issue and rerun the test.

    Screenshot of Teams Calendar App page of Microsoft Remote Connectivity Analyzer.

    Step 6: Escalate the issue

    If you verified that there's no problem with the prerequisites and configurations mentioned in this article, submit a service request toMicrosoft Support with this information:


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.