Username Generator

I have created a transform and used the example in SailPoint, but it keeps asking for a type. If I put Generator for the type it takes it but doesn’t show the code when posted.

Sent

},
  "isRequired": false,
  "multi": false,
  "name": "userId-Admin",
  "transform": {
    "type": "usernameGenerator",
    "attributes": {
      "sourceCheck": true,
      "patterns": ["$ln$fi${uniqueCounter}"],
      "ln": {
        "type": "identityAttribute",
        "attributes": {
          "name": "lastname"
        }
      },
      "fi": {
        "type": "substring",
        "attributes": {
          "input": {
            "type": "identityAttribute",
            "attributes": {
              "name": "firstname"
            }
          },
          "begin": 0,
          "end": 1
        }
      }
    }
  },
  "type": "Generator"
}

What it returned

{
    "id": "b48a10b8-0fd3-4147-b0cb-27dfdc392f5e",
    "name": "userId-Admin",
    "type": "Generator",
    "attributes": {
        "cloudMaxSize": "100",
        "cloudMaxUniqueChecks": "5",
        "cloudRequired": "true"
    },
    "internal": false
}

Hi Kathy,

What API are you using?

https://{{tenant}}.api.identitynow.com/beta

What endpoint? Is it the create transform endpoint? create-transform | SailPoint Developer Community

Yes Create transforms

Looking closer, I don’t think it can be the create transform endpoint. Per the docs, the usernameGenerator transform is meant to be applied to an account create profile.

If you are indeed trying to use the create transform endpoint then that is probably why you are seeing this behavior. Instead, apply your transform directly to the account create profile.

Check out the “Create Account Provisioning Policy” example in the request body.