office 365 usage Location Skip to main content
https://support.okta.com/help/answers?id=9062a000000bmc0qai&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
ankit jankit j 

office 365 usage Location

Hello! After setting up Office 365 app with WS-Federation, I provisioned a user to this app with license assigned. The user was successfully provisioned license with the usage location as "US". However, when I check the user profile, there's no country code configured for that user.

Where does Okta pickup this value of US? Is it possible to change it?
Best Answer chosen by ankit j
James FloresJames Flores (Okta, Inc.)
This value is set my the profile mapping.
 
  1. Go to Directories>>Profile Editor.
  2. Find O365 in the list of profiles
  3. Click it's Mappings button.
  4. On the top of the mappings screen select Okta to O365.
  5. Scroll through the list and you will find a mapping for the usage location.
 
Typically for this value you will find :
 
hasDirectoryUser()?(findDirectoryUser().msExchUsageLocation!=null?findDirectoryUser().msExchUsageLocation:(source.countryCode!=null? source.countryCode : 'US')):(source.countryCode!=null? source.countryCode : 'US')
 
This mapping essentially maps 'US' if no other value is found.  For more information on the Profile Editor please visit https://help.okta.com/en/prod/Content/Topics/Directory/Directory_Profile_Editor.htm

All Answers

James FloresJames Flores (Okta, Inc.)
This value is set my the profile mapping.
 
  1. Go to Directories>>Profile Editor.
  2. Find O365 in the list of profiles
  3. Click it's Mappings button.
  4. On the top of the mappings screen select Okta to O365.
  5. Scroll through the list and you will find a mapping for the usage location.
 
Typically for this value you will find :
 
hasDirectoryUser()?(findDirectoryUser().msExchUsageLocation!=null?findDirectoryUser().msExchUsageLocation:(source.countryCode!=null? source.countryCode : 'US')):(source.countryCode!=null? source.countryCode : 'US')
 
This mapping essentially maps 'US' if no other value is found.  For more information on the Profile Editor please visit https://help.okta.com/en/prod/Content/Topics/Directory/Directory_Profile_Editor.htm
This was selected as the best answer
ankit jankit j
Thanks James! Appreciate the crisp answer.