Removing Whitespaces in Attributes Using Policy Xpress
search cancel

Removing Whitespaces in Attributes Using Policy Xpress

book

Article ID: 262436

calendar_today

Updated On:

Products

CA Identity Suite CA Identity Manager

Issue/Introduction

This article explains how to configure a Policy Xpress (PX) policy to strip all whitespace characters (leading, trailing, and embedded) from a user attribute. This is commonly required for standardizing data such as the User ID during the Create User task.

Environment

Identity Manager

Resolution

To remove whitespace from an attribute, utilize the String Parser function within a Policy Xpress policy.

  1. Create/Edit Policy: Navigate to PX and create a new policy or edit an existing one.
  2. Configure Data Element (Get Attribute):
    • Data Element Name: get_UserID
    • Category: Attributes
    • Type: User Attribute
    • Function: Get
    • Attribute Name: User ID (%USER_ID%)
  3. Configure Data Element (String Parser):
    • Data Element Name: nospaces_UserID
    • Category: General
    • Type: String Parser
    • Function: Replace All
    • Original String: {'get_UserID'}
    • Sub-String to be Replaced: (Enter a single whitespace character here)
    • Replace With: (Leave this blank to delete the character)
  4. Configure Action:
    • Action Name: set_UserID
    • Category: Attributes
    • Type: Set User Values
    • Function: Set
    • Attribute Name: User ID (%USER_ID%)
    • Value: {'nospaces_UserID'}

Additional Information

  • Policy Type: UI
  • Event State: Submission
  • Event Name: Create User (CreateUser)
  • Note: Ensure the PX Policy is correctly scoped to the appropriate task and event state to ensure it triggers during the submission process.