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 !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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