0 votes


I am trying to create a mailbox during a business rule and setting the usageLocation of user to "UK".

However this is failing .... image.png

If I try to edit user via Adaxes and set "UK" or "United Kingdom" operation is failing as well. Setting value to "DE" is working well.

Based on my research usageLocation is using the 2-letter-ISO code

Valid values for “msExchUsageLocation” appear to be the same as those for the “Country” field (attribute name = “c”); basically it’s the 2-letter ISO code for the country.


Is this a known error?

We are running on version 3.16.21515.0 (64 bit)

by (1.2k points)

1 Answer

0 votes
by (277k points)


The behavior is expected. The thing is that the AD property Country and Microsoft 365 location work differently in this case. UK will work fine for the Country. However, in the Active or modify Microsoft 365 account action the value will be invalid. You need to us GB instead.

Related questions

0 votes
1 answer

I am getting the following error within Adaxes when I try to connect to my Office 365 tenant or run any powershell scripts against it. Failed to create an Office ... .Runspaces.InitialSessionState' threw an exception. Does anybody have a solution for this :?:

asked Jun 17, 2015 by rmedeiros (380 points)
0 votes
0 answers

When attempting to assign licenses during the "after creating a user" rule we're reciving the following error. Failed to create a remote mailbox for the user. The address ' ... mail attribute to the proper format that isn't the onmicrosoft.com domain as well.

asked Sep 2, 2021 by zorps (20 points)
0 votes
1 answer

Hi, We encounter an error on one of our Adaxes service (Adaxes 2016 3.7.13430) when activating Licence for new user : Softerra.Adaxes.CommandPipeline.CommandProcessingException: The ... stack trace --- Any idea ? Thank you in advance for your help regards

asked Sep 20, 2017 by smasset (740 points)
0 votes
1 answer

Is there a way for Adaxes to use a user's Microsoft 365 profile pictures instead of having to select a file on a per user basis?

asked Feb 1 by keneth.figueroa (20 points)
0 votes
1 answer

I'm trying to use "Before Modify Office 365" event to request approval for changes. It seems to be kicking off for the "After Create User" event. How do I request ... for default settings but if admins want to make a change then it goes out for approval.

asked Jul 20, 2020 by ComputerHabit (790 points)
3,411 questions
3,108 answers
545,838 users