Optional: Add an application access policy

The Application Access Policy authorizes the bot to retrieve additional meeting information, such as the meeting title, on behalf of users.

Before you begin 

Procedure 

  1. Open PowerShell as an administrator.

  2. Connect to Microsoft Teams:

    Connect-MicrosoftTeams

  3. When prompted, sign in using your admin credentials.

  4. Create the Application Access Policy:

    New-CsApplicationAccessPolicy -Identity "<AppAccessPolicyName>" -AppIds "<BotAppClientId>" -Description "<Description>"

    • <BotAppClientId> is the Application (client) ID of the bot’s app registration in Azure.

  5. Assign the Application Access Policy to a user.

    Grant-CsApplicationAccessPolicy -Identity "<UserId>" -PolicyName "<AppAccessPolicyName>"

    • <UserId> is the Object ID of the user in Microsoft Entra ID.

Alternative assignment methods

  • Assign the Application Access Policy to users with a specific Teams Compliance Recording Policy.

    Get-CsOnlineUser | Where-Object { $_.TeamsComplianceRecordingPolicy.Name -eq "<RecordingPolicyName>" } | Grant-CsApplicationAccessPolicy -PolicyName "<AppAccessPolicyName>"

  • Grant the Application Access Policy to all users who have not been assigned one yet.

    Grant-CsApplicationAccessPolicy -PolicyName "<AppAccessPolicyName>" -Global

What to do next 

Deploy cross-tenant support in MS Teams capture