Overview
This document provides step-by-step instructions for adjusting how telephone numbers are formatted after provisioning in OpenIAM.
In this document we cover these topics.
1. Understanding the Telephone Number Format with an Example
2. Accessing the Groovy script
- 2.1 Navigate to the Policy Map
- 2.2 Edit the user policy
- 2.3 modify the Groovy script
1.Clarify this problem with an example
The problem is that the Area Code and Country Code are stuck together, which is not acceptable.
2. Accessing the Groovy script
2.1 Navigate to the Policy Map
locate the Provisioning tab in the main menu.
Then go to Manage System.
Select the AD PowerShell Managed System.
Click on Edit.
note:
In every Managed System, there is a designated Policy Map.
2.2 Edit the user policy
Navigate to the user policy section
Select the Edit option.
note:
Each attribute we define in OpenIAM is linked to an attribute in Active Directory.
For instance:
The OfficePhone in the OpenIAM corresponds to the TelePhoneNumber Attribute in Active Directory.
2.3 modify the Groovy script
Click on the TelePhoneNumber
You'll be able to view the Groovy script.
Click on the Edit button
(to see the details of what has been configured)
This section of the code is designed to configure the telephoneNumber variable
note
its copied from Groovy script
def telephoneNumber = phone.getCountryCd() + " " + phone.getAreaCd() + "-" + phone.getPhoneNbr()
note:
You can modify the script to adjust how the telephoneNumber is formatted after provisioning.
You can remove the Country Code and Area Code, or just the Area Code if needed.
def telephoneNumber = phone.getPhoneNbr()
def telephoneNumber = phone.getAreaCd() + "-" + phone.getPhoneNbr()
After editing, click Save. If any configuration validation fails, a message will appear with further details.
Top comments (0)