<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7UyISAVOkta Classic EngineOkta Integration NetworkAnswered2018-09-05T01:28:35.000Z2016-11-21T15:34:46.000Z2018-08-16T15:20:40.000Z
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?

  • 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
    Expand Post
    Selected as Best
  • 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
    Expand Post
    Selected as Best
This question is closed.
Loading
office 365 usage Location