web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Grant Warehouse Shipment Page API Access when OAuth Grant Type=Client Credentials

(0) ShareShare
ReportReport
Posted on by 82

Hi fellow developers,

I am setting up a Service-to-Service authentication in AAD to expose APIs to external warehouse integration partners. 

At this stage, I am able to setup the authentication with Grant Type: Client Credentials and it works with regular API Page access, but when I tried to call the warehouse shipment API, I am getting 400 Bad Request: 

You must first set up user INTEGRATION PARTNER as a warehouse employee.
I know how to setup warehouse employee if I am accessing via user-impersonation but with Client Credential access, I am not accessing the page as a signed-in user so I cannot setup warehouse employee for the account.
Is there a way to get through the Warehouse Employee setup validation for Service-to-Service authentication? Or the only way I have is to create custom API instead of using the Warehouse Shipment API page.
Thank you,
Ginger
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at

    Hi, When you add Azure Active Directory Application in BC, a user will be automatically created, and you can just add this user to Warehouse Employee. This should solve the problem.

    pastedimage1665623466424v1.png

    pastedimage1665623474861v2.png

    pastedimage1665623501853v3.png

    Hope this helps.

    Thanks.

    ZHU

  • Ginger Frog Profile Picture
    82 on at

    Thanks a lot ZHU.

    I couldn't find the corresponding Username in the Warehouse Employee dropdown list, so I assumed that's not possible. But it looks like I can just type the Username in the Warehouse Employee column and it worked!

    Thank you,

    Ginger

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans