locked
Setting the Country Code om MFA users. RRS feed

  • Question

  • Hi

    Is there any tools other than the Multi-Factor Authentication Server GUI that i can use for setting "Country Code" ? We import users from AD, where our users have the correct mobile phone numerer registered, but when imported to MFA we need to change the default country code setting ( +1 USA ) to ( +47 Norway ). We are looking for a way to automate this via som kind of script.

    Are there any PowerShell commandlets or utilities that can help ?

    Thanks

    Thursday, May 8, 2014 8:08 AM

Answers

  • The question did mention importing users from AD and that the phone numbers were stored there. If the phone numbers are stored in the correct format in AD, they will import correctly and the correct country code will be set automatically. Then they won't have to be changed after import. However, if they do need to be changed after import in bulk, you can export the users (File-->Export Users) to CSV, change the country codes which are all in a single column and then re-import that file.
    Wednesday, October 1, 2014 1:35 AM

All replies

  • If you have a space between the country code and phone number in AD (e.g. +47 12345678), it will import correctly and no additional work will be required. Since country codes vary in length, we can't parse the country code and phone number if it's a single string without any spaces. If you do need to set the country code and phone number programmatically, we don't have PowerShell cmdlets, but there is a Web Service SDK in the MFA Server that you can install and then write code to update users via the web services.
    Friday, May 23, 2014 10:55 PM
  • If you have a space between the country code and phone number in AD (e.g. +47 12345678), it will import correctly and no additional work will be required. Since country codes vary in length, we can't parse the country code and phone number if it's a single string without any spaces. If you do need to set the country code and phone number programmatically, we don't have PowerShell cmdlets, but there is a Web Service SDK in the MFA Server that you can install and then write code to update users via the web services.

    That was not his question, when adding a user or when importing users, the country code is set to United States & Canada +1 by default. Can this be changed to another country by default, instead of having to use the drop down menu each time for each user?

    Wednesday, September 24, 2014 1:33 PM
  • The question did mention importing users from AD and that the phone numbers were stored there. If the phone numbers are stored in the correct format in AD, they will import correctly and the correct country code will be set automatically. Then they won't have to be changed after import. However, if they do need to be changed after import in bulk, you can export the users (File-->Export Users) to CSV, change the country codes which are all in a single column and then re-import that file.
    Wednesday, October 1, 2014 1:35 AM
  • Can you please point to documentation that defines the correct format to store phone numbers in Active Directory?

    Wednesday, January 7, 2015 1:46 AM
  • Hi,

    I'm experiencing a similar issue. We have phone number stored in AD without the country code, eg 0221234567 and the Country/Region in the AD properties is set correctly to New Zealand.

    On import the country code still defaults to "United States & Canda".

    Sunday, November 22, 2015 8:51 PM