Symptoms
O365 Sync script fails on adding a new user and assigning a license to him.
In sync log:
DEBUG Subscription 1001808: going to add new user with login 'username@domain.com'
DEBUG Subscription 1001808: user username@domain.com added
DEBUG Subscription 1001808: going to add Office365 service Microsoft Office365 (Plan E3) for user username@domain.com
ERROR Subscription 1001808: error by updating: Error during OpenAPI call: Limit for resource 'Microsoft Office365 (Plan E3)' in subscription exceeded, current limit is 290.
Cause
In MOP 'Microsoft Office365 (Plan E3)'(in this example) license was removed from an existing user and then assigned to the new user. But in POA this original user still has this license assigned.
Resolution
Find the user which has no license in MOP, but does have the license assigned in POA CCP.
Unassign the license in question from this user via POA CCP (make sure corresponding POA tasks completed successfully);
- Repeat subscription synchronization via synchronization script. It should then complete without errors.
The handling of such situations was implemented in scope of APSA-9853 in Office 4.15