Forum Discussion

kbrew904's avatar
kbrew904
Copper Contributor
Nov 18, 2022

Set-CsOnlineVoicemailUserSettings app authentication error

I am currently using app authentication with the Teams PowerShell module. The script is a runbook under an Automation Account, and I am using a registered app for authentication/authorization. 

 

The SP I am using has the recommended Graph API permissions as well as the Teams Admin role assigned.

I am able to connect fine and retrieve user info, however when I attempt to change a users voicemail settings via Set-CsOnlineVoicemailUserSettings, I receive this error:

 

AADSTS7000113: Application '48ac35b8-9aa8-4d74-927d-1f4a14a0b239' is not
 authorized to make application on-behalf-of calls.

 This command is not listed as unsupported when using app authentication. Is there additional permissions setup for the Skype and Teams Tenant Admin API I have to do for this to work?

Resources