Crowdsourcing Validation Rules for Uganda National ID

Crowdsourcing Validation Rules for Uganda National ID

I am curious about the ability to validate that the Uganda National Identification Number (NIN) is well formed. However this does not validate that the NIN actually belongs to the person presenting it or that it is correct.

The rules that I have been able to gleam are:

  1. Must be 14 characters long
  2. First character is a letter of the alphabet. C seems to be a common letter – does it stand for citizen?
  3. Second letter is either M or F – male or female
  4. Characters 3 and 4 are numbers, which are the year of birth. Cannot be after 00 since that would make a person below 18
  5. Characters 5, 6, 7 are numbers

How can you help? Which of these rules do not match your NIN? Share any additional patters to build a repository of rules that can later be mapped to programming language validations – Regular expressions and validation frameworks

4 thoughts on “Crowdsourcing Validation Rules for Uganda National ID

  1. Great Idea. Thanks for sharing. Also, more interestingly, I wonder if at a later date, we’ll be able to easily query an “externally” available NIN database, where for example cross referencing with MSISDNs is possible. That’d open up some new validation frameworks and KYC possibilities currently difficult to pull off.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top