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
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?
Thank you for sharing final outcome. Great work you resolved the issue!
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.
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.
Thanks.
ZHU
Have you tried to delete the AAD App in BC and re create it?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156