access policy 404

Florian 1 Reputation point

i'm trying to create teams meeting request with @microsoft/microsoft-graph-client
But first it say i have to create an access policy so i'm doing :


So i get :

ObjectId                             AppId                                DisplayName  
--------                             -----                                -----------  
37de00f1-836c-4f51-8924-1b9b6c419dbc           f7b9f9d8-3507-46dc-a596-60f437dbab87               BC Teams  

but when i'm trying

New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "f7b9f9d8-3507-46dc-a596-60f437dbab87" -Description "description here"  

i have :

New-CsApplicationAccessPolicy: The remote server returned an error: (404) Not Found

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,715 questions
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
591 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,010 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,714 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 36,836 Reputation points Microsoft Vendor

    Hi @Florian

    Have you installed the Teams module in Powershell and connect to Teams Powershell with an account which is assigned Teams Admin role?
    Reference: Install Microsoft Teams PowerShell Module

    Install-Module -Name MicrosoftTeams -Force -AllowClobber  

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.