This issue may occur when activating a Microsoft 365 account for a user and assigning licenses in the same action.

Symptoms

The following error is returned:

License assignment cannot be done for user with invalid usage location.

Cause

This may be caused by recent changes on the Microsoft side that may have introduced internal propagation delays for the usageLocation property.

Solution

We are currently investigating the exact cause and working on a permanent fix.

As a workaround, split the action into two separate actions. One to activate the account and another to assign licenses. Then, insert a Run a program or PowerShell script action that adds a 1-minute delay between them.

image.png

by (660 points)

Please log in or register to answer this question.

Related questions

Our Microsoft 365 licensing changed recently. All of our end users has a particular license that is no longer valid (ENTERPRISEPREMIUM = Office 365 E5). I need to give everyone that ... the same time, remove the old license. How can this be set up in Adaxes?

asked Jul 21, 2025 by RayBilyk (310 points)
0 votes
1 answer

By default, in hybrid environments, when an on-premises AD object is created in Adaxes within the scope of a Microsoft 365 tenant, Adaxes will create the corresponding ... the Display the temporary password in the Execution Log checkbox. Click OK twice.

asked Nov 16, 2022 by Adaxes (660 points)
0 votes
0 answers

Hello, We are running Adaxes 3.18.25007.0 with a managed domain example.local that has two domain controllers, DCnode1 and DCnode2. The domain was registered by ... get automatic failover? Thank you in advance for your help. Best regards, Leonardo Bressan

asked 8 hours ago by lbressan (160 points)
0 votes
1 answer

Hi I'm trying to product a report to show the users with either E3, F3 or F5 licenses. If I add the Adaxes "Microsoft 365 Licenses" attribute directly to the report then ... from the user and show a nice "Microsoft E3" etc value. Is this possible? Thanks

asked Sep 27, 2021 by chappers77 (2.0k points)
0 votes
1 answer

How can i différenciante the two user without opening each one of them ?

asked Jan 20, 2023 by eric.lebrun (20 points)
0 votes
1 answer