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
-
Open PowerShell as an administrator.
-
Connect to Microsoft Teams:
Connect-MicrosoftTeams -
When prompted, sign in using your admin credentials.
-
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.
-
-
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