Username generator fail

Hello everyone
I have a problem with the username generator. I am using the following transformation to set the value of AD userPrincipalName:

{
  "attributes": {
    "cloudMaxSize": "100",
    "cloudMaxUniqueChecks": "25",
    "cloudRequired": "true"
  },
  "isRequired": false,
  "multi": false,
  "name": "userPrincipalName",
  "transform": {
    "type": "usernameGenerator",
    "attributes": {
      "sourceCheck": true,
      "patterns": ["$fi$ln${uniqueCounter}"],
      "ln": {
        "type": "identityAttribute",
        "attributes": {
          "name": "lastname"
        }
      },
      "fi": {
        "type": "substring",
        "attributes": {
          "input": {
            "type": "identityAttribute",
            "attributes": {
              "name": "firstname"
            }
          },
          "begin": 0,
          "end": 1
        }
      }
    }
  },
  "type": ""
}

However, I am getting the error:

Stopped processing username creation for pattern: $fi$ln${uniqueCounter} because maximum attempts reached: 25

Why is it not working?

Can you repost this in the Discussion and Questions Category?

Hi @gsierra, I believe is because you specified "cloudMaxUniqueChecks": "25" in your script. The generator exhausts the “cloudMaxUniqueChecks” value and still does not find a unique value, and thus the error.

The maximum allowed value for this field is 50.

For more information, you can read from this documentation: Username Generator | SailPoint Developer Community.

Hope this helps.

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