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 :
Finance | Project Operations, Human Resources, ...
Answered

Consuming Dynamics 365 FO Custom Service throwing 403 forbidden error

(0) ShareShare
ReportReport
Posted on by 3,045

Hi all,

I have developed one custom SOAP service in FO VM and now trying to consume that in .Net Console Application.

I have already done everything: Azure app registration, FO System Admin- Setup. I am also referring to the Git hub repository of the D365 FO web service. 

Now I am facing a forbidden error when I am running my console application code. 

  • Sergei Minozhenko Profile Picture
    23,099 on at

    Hi Pooja,

    In another thread, you mentioned that you are using VHD? Is that correct? Have you checked that all parameters needed for authorization is correct especially AD resource (without trailing slash)

  • Sukrut Parab Profile Picture
    71,741 Moderator on at

    Are you able to test this service using any other tool  like SOAPUI ? If not try to test and see if you are able to successfully test it.  As mentioned by Sergei trailing slash in a resource while acquiring token could cause issues , so check that as well.

    docs.microsoft.com/.../third-party-service-test

  • Pooja Karki Profile Picture
    3,045 on at

    Testing in SOAPURI I will do and update you? where I have to check AD resource for trailing resources?

  • zhifeng Profile Picture
    Microsoft Employee on at

    Can you check AuthenticationUtility class and make sure all parameter has been set?

  • Pooja Karki Profile Picture
    3,045 on at

    Yes, I have cross-checked that also.

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Pooja,

    We have faced this error earlier for two reasons -

    1. App registration API permissions. Please ensure the following permissions are enabled.

    pastedimage1599470396402v1.png

    2. Are you authenticating with app secret or user Id & password? In case it's the latter, Does the user Id have appropriate access for Azure app registration and for F&O?

  • Pooja Karki Profile Picture
    3,045 on at

    Hi All,

    I have checked the azure app registration and already assigned permission to D365 ERP. I have checked SOAPURI and got a message: There is insufficient account information to log you on.

    In azure I have register URL is: Https://<base URL>/soap/services

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Pooja,

    Will it be possible for you to share a screenshot of the API permissions under "Azure Active Directory Graph"?

  • Pooja Karki Profile Picture
    3,045 on at

    pastedimage1599557951030v1.png

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Pooja,

    Are you authenticating as a user or using client app secret?

    Also, which user is configured for this App Id in F&O

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 539 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 366 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 197

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans