question

YuvalSimhi-3566 avatar image
0 Votes"
YuvalSimhi-3566 asked EricUrban-MSFT answered

When i am trying to make my first api call i get "the request is not valid for the application's 'user audience'"

II am making an API call using authentication-oauth-quick-start. When I use my app's client id, I receive the following error "the request is not valid for the application's 'user audience'".
How can I make it work and get my access token?


advertising-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EricUrban-MSFT avatar image
0 Votes"
EricUrban-MSFT answered

You must select Accounts in any organizational directory and personal Microsoft accounts during the initial app registration. This setting cannot be updated later in the portal unless you modify the application manifest e.g., "signInAudience": "AzureADandPersonalMicrosoftAccount". Please double check your settings.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.