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

Announcements

No record found.

News and Announcements icon
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
  • Verified answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans