Update Country Code for Active Directory Users

This guide shows you how to bulk update the country code attributes for users in Active Directory.

Three attributes, not one

Changing the Country/region setting on a user account in Active Directory actually updates three attributes. To bulk update the country, you have to set all three for each user.

Attribute What it is Example
c Country/region name, ISO 3166 alpha-2 code. Two letters. US
co Country/region display name. The full, human-readable name. United States
countryCode Numeric country code, based on ISO 3166-1 numeric. 840

How to bulk update countryCode for AD users

  1. Get your country code values from the table below.
  2. Open the Update Users tool and download the provided CSV template. The c, co and countryCode columns are already in the template, so just add the users and the values you want set.
  3. Back in the Update Users tool, select your CSV file and click Run.

To confirm the update, run the All Users report with the c, co and countryCode columns included.

Country codes list

If your country is not listed, refer to the ISO website for the full set of codes.

c co countryCode
US United States 840
CA Canada 124
GB United Kingdom 826
AU Australia 036
NZ New Zealand 554
DE Germany 276
FR France 250
IT Italy 380
ES Spain 724
NL Netherlands 528
BE Belgium 056
SE Sweden 752
NO Norway 578
DK Denmark 208
FI Finland 246
IE Ireland 372
CH Switzerland 756
AT Austria 040
PT Portugal 620
PL Poland 616
CZ Czech Republic 203
SK Slovakia 703
HU Hungary 348
RO Romania 642
BG Bulgaria 100
GR Greece 300
TR Türkiye 792
IL Israel 376
AE United Arab Emirates 784
SA Saudi Arabia 682
QA Qatar 634
KW Kuwait 414
BH Bahrain 048
IN India 356
CN China 156
JP Japan 392
KR South Korea 410
SG Singapore 702
HK Hong Kong 344
TW Taiwan 158
BR Brazil 076
MX Mexico 484
AR Argentina 032
CL Chile 152
CO Colombia 170
ZA South Africa 710
NG Nigeria 566
KE Kenya 404
EG Egypt 818