microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

New-CsOnlineApplicationInstance: Access Denied.

Open katutake0501 opened this issue 1 year ago • 2 comments

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.

スクリーンショット 2024-10-07 20 33 26

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?

katutake0501 avatar Oct 07 '24 11:10 katutake0501

You will need to sign into a user account that has Teams Administrator permissions in the tenant when running the Connect-MicrosoftTeams command.

InDieTasten avatar Oct 13 '24 11:10 InDieTasten

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

tszafran avatar Jan 27 '25 20:01 tszafran