0 votes

Good afternoon,

I've been asked to change our phone number fields to be E.164 compliant. I have come up with the following Regular Expressions for the Phone (with extension), Fax, and mobile device numbers. I wanted to check with the experts here that the regular expressions made sense before applying them.

I am also wondering if changing the property patterns to accept E.164 and not the current format will cause any issues. Will the users lose data, or will the property pattern simply take effect next time the user changes their number?

The current Regular expressions, resulting in a phone number format of 555.123.4567 ext 12345

([\]{1}[0-9]{3}[\]{1}[\.]{1}[0-9]{3}[\.]{1}[0-9]{4}([\ ]{1}[\bext\b]{3}[\ ]{1}[0-9]{3,5})?)$

I'll be changing the expression to the following, to result in a format of 15551234567 ext 12345

/^\+?[1-9]\d{1,14}([\ ]{1}[\bext\b]{3}[\ ]{1}[0-9]{3,5})?
by (170 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

The following expression should do the job:

^\+?\d{11} ext \d{5}$

Will the users lose data, or will the property pattern simply take effect next time the user changes their number?

The users won't lose their data, but the next time they try to modify their phone number, they will be forced to use the new format. Also, if the Telephone Number field is present anywhere on the Web Interface page for modifying users, users will be forced to adjust the telephone number to the new format even if they don't modify it. When you modify a user via the Web Interface, all values present on the page are checked against Property Patterns.

Related questions

0 votes
1 answer

Hi, I want to format all existing entries in "telephone number" to the E.164 without exporting and importing a list. At the moment we have the following formats: +49123456789 ... by default +49 123 456 789 How can I catch this with a scheduled task? Thanks

asked Feb 28, 2023 by boris (470 points)
0 votes
0 answers

In user details or user details column, can we give visibility to our admins for SSPR Phone number and email used to do self-service pwd reset, and also the status. It can be through a report or available as a column.

asked Jan 4, 2023 by mchaudh (40 points)
0 votes
1 answer

To avoid typos at the user creation, I want if it is possible to define der Property "IP Phone" by default as the last 4 digits of the property "Telephone Number" ? Thanks

asked Oct 11, 2022 by boris (470 points)
0 votes
1 answer

We would like to auto enroll our entire company into Adaxes for self service but do not want to use the question/answer format but instead their phone numbers (provided by HR department). Is this possible? Best, Evangelos

asked Oct 1, 2021 by evangelos (60 points)
0 votes
1 answer

Hello, i have a custom command which sets the oof-message for the selected user. in this custom command i have a parameter "param-vertretung" (ad-object picker). Now i want to ... and email of the stand-in in the oof-message. Can you help me with that? Thanks

asked Nov 13, 2020 by lohnag (160 points)
3,348 questions
3,049 answers
7,791 comments
545,047 users