Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Unable to grant consent for AD app with super permissions in BC with trial

Posted on by 11

I created a trial account Business Central account and am trying to set up api access using an AAD app.

I'm using the below guides to set this up

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication

https://www.kauffmann.nl/2021/07/06/service-to-service-authentication-in-business-central-18-3-how-to-set-up/

On the AAD side, I was able to create the app and grant consent there.

I believe the step I'm missing is the "Grant Consent" step in Business Central itself.  I cannot grant consent though - the button is disabled.  This is true for both myself (I have been granted all permissions) and for our main admin, who has all permissions.  Specifically, I can see in AAD on the "Assigned Roles" page for my user I can see that I have "Global Administrator" and "Application Administrator" (and many more).

So how do grant consent in this case?

pastedimage1676311809949v1.png

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Unable to grant consent for AD app with super permissions in BC with trial

    Thank you for sharing final outcome. Great work you resolved the issue!

  • Suggested answer
    ddrudge Profile Picture
    ddrudge 11 on at
    RE: Unable to grant consent for AD app with super permissions in BC with trial

    Ok, it looks like I had missed a warning when configuring my test app:

    "Starting November 9th, 2020 end users will no longer be able to grant consent to newly registered multitenant apps without verified publishers."

    I switched it to a single tenant, then "Grant Consent" became available.  It looks like I could have added an MDN publisher ID too, but I don't think that is available for a trial account.  Anyways, I can use the BC API now.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    RE: Unable to grant consent for AD app with super permissions in BC with trial

    Hi, As far as I know, you don't need to click Grant Consent in BC.
    Below are the steps I tested, I hope it can give you some hints.

    https://yzhums.com/20690/

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Unable to grant consent for AD app with super permissions in BC with trial

    Have you tried to delete the AAD App in BC and re create it?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans