Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Web API returns error "Unknown User Type"

(0) ShareShare
ReportReport
Posted on by

I have the sales module with Financials for Dynamics 365 Online and I am trying to access the Web API using the starter code below.  I have entered my credentials according to this blog at: dynamicscrmcoe.com/using-new-web-api.    There is another 3rd party application using the api successfully, so I am presuming everything in Dynamics is setup correctly.  The only thing I have noticed is that the code below, from Feb 2017, is using version 2.2x of Microsoft.IdentityModel.Clients.ActiveDirectory.  The current version is 3.17.   If that is what's causing the problem, how do I correct the code so it will function properly? What am I missing?  

 

Thanks!

Starter Code:

https://code.msdn.microsoft.com/CRM-Web-API-Basic-27fcbf2e 


My Credentials:

8662.DynamicsWebAPISettings.png

*This post is locked for comments

  • RE: Web API returns error "Unknown User Type"

    Thank you AJ.  I will repost in CRM form.

  • Suggested answer
    AJAnsari Profile Picture
    AJAnsari 5,754 on at
    RE: Web API returns error "Unknown User Type"

    Hi Graham,

    I think you'll find more help if you ask this question in the Microsoft Dynamics CRM forum (the product now known as Dynamics 365 for Sales). This particular issue and screenshot does not look to be related to Dynamics 365 for Financials. We don't have a "Settings" area in this product.

    I hope this helps. If my response has answered your question, please verify by clicking Yes next to "Did this answer your question?"

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans