"You do not have a license to use Microsoft Dynamics CRM Online. Contact your Office 365 administrator to assign a Microsoft Dynamics CRM license to you."
NOTE: If you have an existing Office 365 subscription and later added a CRM Online subscription, a CRM Online license is not assigned to your user record automatically. If your user account has the Global Administrator or Service Administrator role, you can still sign into the CRM web application to perform administrative actions but cannot create records such as Accounts, Contacts, Leads, etc... You must have a CRM Online license assigned to successfully connect Microsoft Dynamics CRM for Microsoft Office Outlook to your CRM Online instance. Within the CRM Online web application, you can navigate to Settings | Security | Users and change the view to Administrative Access Users. This view displays users who have administrative roles in the Office 365 portal but do not have a CRM Online license assigned.
For detailed steps on how to assign a license in Office 365, refer to the following article:
Assign or unassign licenses for Office 365 for business
10:58:34| Error| Exception : The user has not been assigned any License at Microsoft.Crm.Application.Outlook.Config.ServerInfo.RunServerDiagnostics()
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserInfo(IClientAuthProvider`1 orgAuthProvider)
at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary, IClientAuthProvider`1 authenticatedProvider)
at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__3(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Article ID: 3091628 - Last Review: 05 Jan 2016 - Revision: 1