Forum Discussion
Error creating application access policy
- Sep 01, 2021
Hi Hunaid, thank you. Following your suggestion I got this error:
Connect-MicrosoftTeams: One or more errors occurred. (ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details. )
Connect-MicrosoftTeams: ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details.
Connect-MicrosoftTeams: One or more errors occurred. (ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details. )
I was using my MSA, then I tried with an Office 365 dev tenant account and even my initial approach worked like a charm.
The documentation is not clear about that. It states only permission type Delegated (personal microsoft account) is not supported, but I was using permission type Application along with my MSA.
fadc80 -
I tried doing this and faced no issue,
Try again by doing Disconnect-MicrosoftTeams and closing PowerShell.
Below is what I tried
> Import-Module MicrosoftTeams
> $credential = Get-Credential
PowerShell credential request
Enter your credentials.
User: user@example.com
Password for user user@example.com: **********
> Connect-MicrosoftTeams -Credential $credential
> New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "ca2e3d70-0000-0000-ae13-124f30000006" -Description "Test policy"
Identity : Tag:Test-policy
AppIds : {ca2e3d70-0000-0000-ae13-124f30000006}
Description : Test policy
Could you please try doing this way once?
It worked on:
Windows 10
PowerShell 7.1.4
MicrosoftTeams 2.5.0
Thanks,
Hunaid Hanfee
--------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- fadc80Sep 01, 2021Copper Contributor
Hi Hunaid, thank you. Following your suggestion I got this error:
Connect-MicrosoftTeams: One or more errors occurred. (ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details. )
Connect-MicrosoftTeams: ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details.
Connect-MicrosoftTeams: One or more errors occurred. (ROPC does not support MSA accounts. See https://aka.ms/msal-net-ropc for details. )
I was using my MSA, then I tried with an Office 365 dev tenant account and even my initial approach worked like a charm.
The documentation is not clear about that. It states only permission type Delegated (personal microsoft account) is not supported, but I was using permission type Application along with my MSA.