AS400 Transform for USRPRF

Hi,

We are onboarding the As400 application in INow. we have limitation of maximum 10 characters for USRPRF i.e. UserName of the account. Can anyone please provide us a way to create a transform to generate username which is also unique.

P.S. I have tried substring “end” but throwing null if the username’s length is actually less than 10.

Do you have any format for username or just random characters, I suggest you to have a format i.e by using user attributes like first name, last name or any other attribute combinations while generating account name.

Yes, we have format and obviously not random characters, but a few times format string length goes more than 10 characters limit for some users.

It is not recommended to generate unique values at identity side, it might fail to generate unique values some times. So, you need to generate while creating account.

I recommend you to use Username generator Transform.

The cloudMaxSize attribute denotes the maximum length of generated data allowable as a result of the generator logic. The transform truncates any characters over the cloudMaxSize

{
  "attributes": {
    "cloudMaxSize": "10",
    "cloudMaxUniqueChecks": "50",
    "cloudRequired": "true"
  },
  "isRequired": false,
  "multi": false,
  "name": "userId",
  "transform": {
    "type": "usernameGenerator",
    "attributes": {
      "sourceCheck": true,
      "patterns": ["$fi$ln${uniqueCounter}"],
      "fn": {
        "type": "substring",
        "attributes": {
          "input": {
            "type": "identityAttribute",
            "attributes": {
              "name": "firstname"
            }
          },
          "begin": 0,
          "end": 5
        }
      },
      "ln": {
        "type": "substring",
        "attributes": {
          "input": {
            "type": "identityAttribute",
            "attributes": {
              "name": "lastname"
            }
          },
          "begin": 0,
          "end": 5
        }
      }
    }
  },
  "type": ""
}

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.