O365 – UCWA


I am having trouble creating a application resource in UCWA with Powershell.

I have followed this guide: https://docs.microsoft.com/en-us/skype-sdk/ucwa/authenticationusingazuread and I am able to get a token and get the Application URL.

But when I try to do a post to the URL following to last step (https://webpooldb42e08.infra.lync.com/ucwa/oauth/v1/applications) I get a 403 error stating that I don’t have the necessary permissions.

My code is:

Create application Resource

$body=@{Culture=’EN-US’;EndpointId=(new-guid).Guid;UserAgent=’PS’} | ConvertTo-JSON

Invoke-WebRequest -Uri $rootappurl -method POST -UseBasicParsing -Body $body -ContentType “application/json” -Headers @{“Authorization”=”Bearer $authcwt”}

The token is valid because I have used it earlier to get the application URL. I have configured permissions in the Azure app for Skype for Business

Does anyone have a clue what I am doing wrong?

Thanks in advance!

submitted by /u/JustTeut
[link] [comments]

Leave a Reply