
Pratula.69048 (Customer) asked a question.
Bit of a broad question - but am stuck at trying to generate an unique email for a new user. Am able to generate the suffix using necessary conditions as well as the prefix as FN.LN.
The prefix validation from Okta UD is where am struggling. Trying to configure logic to do FN.LN1, FN.LN2 etc. if prefix already exists. (Prefix should be unique across multiple suffixes - cannot have john.doe@abc.com & john.doe@xyz.com).
Anyone done this before?

@Pratula.69048 (Customer) -- Here is something I made awhile back (In Okta Workflows) to check Okta for incremented name values. It doesn't find empty space but will return the next highest number.
So for example won't find (3) in 1, 2, 4. Instead it will return the next highest increment of 5.
Note: This is provided as-is. It's a demonstration of how one can leverage Workflows to perform this type of evaluation. Feel free to modify or incorporate none, some, or all of it.
findinghighestincrementFinal