User Provisioning for Asana within Microsoft Entra - Country Code Issue

We’ve got automatic user provisioning configured for Asana within Microsoft Entra, but there’s an error in the provisioning logs that mentions the country code we use is incorrect. Entra uses “United States” and Asana is expecting “US” leading to the provisioning error below for most users.

To resolve these provisioning errors can I safely delete the attribute mapping for country, or will that cause an impact to the existing users?

I could swear I’ve heard the solution from Asana, I just asked my contact to share the solution, I’ll circle back if he gets back to me!

Huge thanks Bastien! I reached out to support, but they don’t seem familiar with the issue. I appreciate anything you can share.

Sorry couldn’t get anything useful.

Hi @Terri_Furuya do you received an answer from support? We have a similar issue with UK user.

Has anyone received an update on this? I am running into the exact same issue in our Entra deployment, and removing the attribute altogether isn’t really a good solution… from what I can tell, the easiest solution, is to use an attribute expression, most likely a SWITCH (but an IIF may also resolve) on the Entra side… wondering if anyone else has that’s expression handy?

Just an update on my end, Entra now includes an ‘Expression builder’ which helped greatly in addressing this issue. For us, we used the SWITCH expression.

Here’s the example:

Switch(source, defaultValue, key1, value1, key2, value2, ...)

And this is what I went with:

Switch([country], "CA","Canada", "CA","United States", "US”)

Note that the first “CA” – that’s the default, for us it works, which is to say, if the user doesn’t have a country set in Entra, return CA in the mapping.

Hopefully this helps anyone in the future, maybe not so much the actual expression, but the note about ‘Expression builder’ as part of Entra Application

1 Like