Unique Counter Issue

Hi everyone,

I’m facing an issue when using usernameGenerator transform for account creation.
It seems that uniqueCounter incrementation starts at 1 even though the username isn’t used. For example, for user J. Doe (who is unique), username should be jdoe but I’m getting jdoe1.

I’m using the following pattern :

“patterns”: [“$fi$ln${uniqueCounter}” ]

sourceCheck is set to false.

Do you have any suggestions ?

Thanks in advance

Hi Julie,

I believe when you set the sourceCheck to false, ISC will only query the ‘accountId’ on all its current representations of accounts for that source. Can you double check what attribute you have set as the account ID and verify there is no account in that source has a value of ‘jdoe’?

If you still don’t see one, maybe run a full unoptimized aggregation to ensure you are pulling in all the current set of accounts + attributes from the source.

Let me know if that helped!

Thanks,

Liam

Hi Liam,
Thank you for your response,

The attribute to provision, “User Name”, is set to be the Account Id and Account Name. I ran an unoptimized aggregation and checked that no accounts had the same user name and I confirm there isn’t.

Regards,
Julie

Hmm that is weird. Even in the uncorrelated accounts?

You could also try specifying multiple patterns. So something like this:

“patterns”: [
    “$fi$ln”,
    “$fi$ln${uniqueCounter}”
]

Adding the first pattern made it work!
I’ve tested both use case, I have now jdoe and jdoe as expected.

Thank you!