Creating a custom rule for reverse attribute mapping

Use this task to create a custom transform for your reverse attribute mapping.

Before you begin

  1. Set up the basic information for the application in the General tab.
  2. Optionally, specify the required information for sign-on or API access.
  3. Enable the account lifecycle section for provisioning or deprovisioning or both.

About this task

In the account sync tab, the administrator can reverse map the attributes that are used to sync accounts in IBM Security Verify. The adoption policy on the account sync tab determines how the accounts are matched as part of account sync operations. After an account is matched successfully, reverse attribute mappings return how individual attribute values are transformed and stored with IBM Security Verify. To transform the value of target application attributes to existing Verify attributes, select the appropriate transformation value from the build-in transformation menu. Otherwise, no transformation is applied by default and the transformation value is None.

Procedure

  1. In the Account sync tab, scroll to the Reverse attribute mapping section.
  2. Select Add attribute mapping.
  3. From the Target attribute menu, select Custom rule.
    The code editor opens.
  4. In the code editor, edit the sample account attributes JSON for testing out your rule.
    For example,
    {
    	"account": {
    		"login": "",
    		"name": "testuser",
    		"job_title": "",
    		"language": "",
    		"timezone": "",
    		"phone": "",
    		"address": "",
    		"space_amount": "",
    		"role": ""
    	}
    }
    With this JSON the user's account information can be fetched as account.name.
  5. Make sure that the rule works.
    1. Click Show.
      A sample account JSON shows the account attributes of the application. Provide values to the sample account attribute JSON to test the rule.
    2. Click Run test.
    3. Verify that a correct value is returned in the Results section.
      For more information about writing custom rules, see Attribute functions.
    4. Click Save.
    Note: After you create a custom rule, you can click the pencil icon to edit it.
  6. From the Verify attribute menu, select the attribute.