D365: “The user is not a member of the organization” error while connecting to CE

Recently, we were working on connecting to CE to do some CRUD operation using Azure function. We were using Client ID(Application ID) and Client Secret of the app registered on Azure Active Directory.

We had provided the necessary API(Dynamics CRM) Permission (delegated “user_impersonation”) to the app.

While running the Azure function, we were getting the error message “The user is not a member of the organization” when we were connecting to CE.

After investigating the issue for some time, we found that we had missed one important step of creating Application User back in CE with the Application ID(Client ID) of the app.

Creating the Application User with the Application ID(Client ID) fixed the issue.

Hope it helps !!

9 thoughts on “D365: “The user is not a member of the organization” error while connecting to CE

  1. Greetings, Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job, Keep it up. You can check out this article, might be of help 🙂

    Like

  2. I found this solution after debugging for more than 3 hours.
    This truly works. You help me a lot, thank you so much.

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.