Recently we started getting the below error suddenly in one of our environments for all the users.
“You need a Microsoft Dynamics 365 license to continue. You do not have a license to use Microsoft Dynamics 365. Contact your Office 365 administrator to assign a Microsoft Dynamics 365 license to you.”
The users had the required CRM licenses and this error was only coming for the case entity.
Eventually, we realized that a Plugin / Workflow was running under the context (owner for Workflow) of a user who had recently left the organization and had his account disabled inside CRM.
Updating the context and owner of the workflow to run under the Service Account (with appropriate roles) fixed the issue.
Hope it helps..
Thanks for information, we always keep non user (organisation) account to avoid this issue with account never expiry
LikeLiked by 1 person
That’s how it should be .. thanks for the comments..
LikeLiked by 1 person
could you please provide more information about how to update the context and owner of plugin please? as we’re encountering the same issue as well, thanks in advance
LikeLike
either through plugin registration tool or in the plugin code – https://carldesouza.com/dynamics-365-impersonate-a-user-in-plugin/
LikeLike
Hi Nishant,
I need some advise on D365 SCM/ Finance Licensing and that is very basic. Lets assume that
Many individual users are assigned roles that require Operations License Type; in this case, at what point the system should prompt about over usage or at what point the License get exhausted?
(we, as MS Partner get frequent requests from our customer /users to assign Role that need Operations License Type, and we keep on assigning them :-))
LikeLike