'Having issue with Microsoft Teams access policy, namely New-CsApplicationAccessPolicy command

When trying to allow applications to access online meetings by https://docs.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy namely trying exec command:

New-CsApplicationAccessPolicy -Identity Test-policy -AppId "my app id"

I get

New-CsApplicationAccessPolicy: Unable to cast object of type 'System.Management.Automation.PSListModifier' to type 'System.String'.



Solution 1:[1]

It should be AppsIDs with a final s and please add a description:

New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "my app id" -Description "Some description"

Create a new application access policy with one app ID

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DSSO21