New-CsOnlineApplicationInstance: Access Denied.
To implement PolicyRecordingBot, I am using the README.md page as a reference.
However, when I run the command
New-CsOnlineApplicationInstance -UserPrincipalName <[email protected]> -DisplayName <displayName> -ApplicationId <your_botappId>
I get the error
New-CsOnlineApplicationInstance: Access Denied.
I would like to know how to deal with this error.
Furthermore, I found on this site that the command
New-CsOnlineApplicationInstance
is not supported.
If this command is not available, how can I create an application instance instead?
You will need to sign into a user account that has Teams Administrator permissions in the tenant when running the Connect-MicrosoftTeams command.
This cmdlet I believe now requires the Global Admin role or User Administrator role as of the 4th quarter of 2024 and continue through the 1st quarter of 2025.
https://learn.microsoft.com/en-us/microsoftteams/manage-resource-accounts#assign-permissions-for-managing-a-resource-account