Why does my user grant request doesn't change permission's status?

Alex Bajzat 1 Reputation point
2022-09-16T08:47:27.677+00:00

Hi,

We were using Microsoft Ads API normally, up until a week ago when the auth flow started to fail.

We linked the failure to an Azure AD account which probably configured the Microsoft Ads app and permissions, and has been recently removed.
A scope we were using (msads.manage) was missing from our application's permissions. I added that one back, used the OAuth2 flow to grant consent for that specific permission, but the status doesn't change.

The OAuth2 flow completed normally (although I didn't see any list of permissions after login, just the code). I can see that my consent appears as requested in Enterprise Applications -> Permissions (for that app), but the status for that permissions doesn't show 'Granted for x'.

What am I doing wrong? I've used this url to get the code, as per documentation: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={obviously_correct_client_id}&scope=https://ads.microsoft.com/msads.manage&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient&state=ClientStateGoesHere&prompt=login

See images attached below.

Thank you,
Alex

241842-image.png

241806-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,873 questions
Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
414 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,427 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 104K Reputation points MVP
    2022-09-16T08:59:38.093+00:00

    "Granted for X" designates tenant-wide consent (the equivalent of pressing the Grant admin consent button above), if users are granting consent individually, you will not see it. Did you check the token, does it have the msads.manage permissions reflected?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.