Fact
- PhenixID Identity Provisioning 5.0.0 or later
- Previously know as NSD1314
Situation
How to use the Action ValidatePersonalIdNumber
Solution
Download and install the action package
Download the action package file:
https://files.phenixid.se/s/eLmLA4K3GQL8Kmr/download
For instruction of how to install the action package, read PSD1149.
Overview
This PIP Action validates a Swedish personal identity number (personnummer) or a co-ordination number (samordningsnummer). A co-ordination number is a uniform identification number for physical persons who are not or have not been registered in the Swedish population records. Example: 701063-2391
- Accepts 10 characters: YYMMDDNNNN
- Accepts 11 characters: YYMMDD-NNNN
- Accepts
12 characters: YYYYMMDDNNN
Note that if the incoming personal id number is missing the leading century number (18, 19, 20), the century number will not be added to the validated result. - Accepts
13 characters: YYYYMMDD-NNNN
Note that if the incoming personal id number is missing the leading century number (18, 19, 20), the century number will not be added to the validated result.
If the personal Id number is valid, the PINStatus attribute is set to SUCCESS and the PINResult attribute is set with the value of the formatted personal Id number. If the Id number is invalid, the PINStatus attribute is set to FAILURE.
Settings
The parameters for the action:
Parameter | Description |
Session Attribute Containing Personal ID Number [MANDATORY] | Attribute of the incoming session object which contain a swedish personal identity number. Example: serialNumber |
Session Attribute for PIN Status [OPTIONAL] | Enter a session attribute name for PINStatus. The status attribute value (SUCCESS or FAILURE) indicates if the personal id number is valid or not. |
Session Attribute for PIN Result [OPTIONAL] | Enter a session attribute name for PINResult. The PINResult attribute value contains the personal ID number, formatted in a format from the setting Personal Id Number Format. Default value=PINResult |
Personal Id Number Format [OPTIONAL] | Format of the returned personal id number. Please provide one of the following formats: YYYYMMDD-NNNN, YYYYMMDDNNNN, YYMMDD-NNNN or YYMMDDNNNN. Default value=YYYYMMDDNNNN |
Example
Validate the personal id number 19750923-1036, convert to YYMMDDNNNN.
Parameter | Value |
Session Attribute Containing Personal ID Number [MANDATORY] | serialNumber |
Personal Id Number Format [OPTIONAL] | YYMMDDNNNN |
Result:
PINResult=7509231036
PINStatus=SUCCESS
Century (19) and dash (-) was removed due to the setting Personal Id Number Format=YYMMDDNNNN. The personal id number is valid which ends up with SUCCESS in the session attribute PINStatus.
DISCLAIMER
Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.
PhenixID - support.phenixid.se