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

ago 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

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

I have created a Business Rule (call it BR1) that occurs After adding or removing a member from a group . For testing purposes, it currently runs a PowerShell script ... the Business Rule I created. Is this expected behavior? Or am I doing something wrong?

asked Apr 12, 2023 by alex.vanderwoude (60 points)
0 votes
1 answer