Microsoft Office 365 provisioning flow fails with one of the following errors visible in the Okta dashboard:
- 400 Unable to assign this license set because it would cause a license violation.
- Received response with HTTP status code 400. httpStatusCode=400 errorCode=Request_BadRequest errorMessage="License assignment failed because service plan
- Microsoft Office 365
- Provisioning
- Error
This error is returned by Microsoft Office 365 and has two possible causes:
- The license listing in Okta no longer reflects the licenses in O365. This can be a result of subscription changes or product license changes.
- The combination of products chosen for a given license in the app assignment needs to be changed because one of the products selected also requires another product in Microsoft Office 365 (for example, for the Business Premium SKU - selecting Office Online without SharePoint Online will result in this error)
To resolve cause #1 listed above:
- Navigate to Admin > Applications.
- Select More.
- Select Refresh Application data.
- Navigate to Admin > Dashboard > Tasks.
- Filter based on the impacted user.
- Retry the assignment or profile push task.
To resolve cause #2 listed above:
i.e., Microsoft Office 365 Business Premium—Office Online and Microsoft Office 365 Business Premium—SharePoint Online (Plan 1).
- Navigate to Admin > Application > Microsoft Office 365.
- Search for the user in the Assignments tab.
- Select Edit (pencil icon).
- Reselect the licenses and Save.
If the above combination is not the cause, manually assign the products via the Microsoft Office 365 UI. This should also return an error highlighting the exact licenses causing the error. Once identified, update the user assignment in the Microsoft Office 365 integration and verify the assignment is successful.
- Navigate to https://portal.office.com.
- Log in as an administrator account for Microsoft Office 365.
- Select Admin > Users > Active Users.
- Search for the user and select them from the listing.
- On the right-hand window, select Edit for product licenses.
- Select the products originally chosen for user assignment in Okta.
- An error stating the violation and the required licenses should be returned.
- Navigate to Okta > Admin > Applications > Microsoft Office 365.
- Search for the user in the Assignments tab.
- Select Edit (pencil icon).
- Reselect the licenses along with the corrections identified in the above steps.
- Save.
