How can I use New-CsApplicationAccessPolicy -identity $policyName on macos?

Đức Tri Bùi Quang 5 Reputation points
2023-05-08T03:59:18.1333333+00:00

Hi Microsoft team,

I try to Configure the application access policy but when I tried following this docs: https://learn.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy in the step Create an application access policy containing a list of app IDs. I got the error that New-CsApplicationAccessPolicy: access denied. So how can I run this command following the docs?

And is there any way I could do this in the UI Azure portal?

Basically, I want to create a team online meeting via graph API with application permission. by using POST /users/{userId}/onlineMeetings.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,051 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,565 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,839 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
{count} vote

3 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-05-08T17:35:34.2333333+00:00

    Hi Đức Tri Bùi Quang.

    Thanks for reaching out. It seems from the Access Denied error your received while running the New-CsApplicationAccessPolicy Teams PowerShell command that your account does not have the appropriate permissions to run the command. Please ensure that you have provided appropriate role to your account.

    Currently there is no way to create an Application Access Policy via Teams Admin Center portal or Azure UI portal and you have to use the New-CsApplicationAccessPolicy PowerShell command to create it.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


  2. CarlZhao-MSFT 36,891 Reputation points
    2023-05-09T08:06:28+00:00

    Hi @Đức Tri Bùi Quang

    This is because users connecting to Microsoft Teams lack admin permissions, and you should connect to Microsoft Teams using a Skype for Business administrator with an O365 license.

    User's image

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


  3. TH-4749-MSFT 3,290 Reputation points
    2023-05-29T16:05:05.22+00:00

    Hi Đức Tri Bùi Quang

    Hope things are going well. I am writing to see if the above suggestions helped. If there's anything else we can help, feel free to let us know.

    Thanks

    0 comments No comments