Generate Email Format

I want to perform Provisioning Create Account to Google Workspace, where I have to generate an email format. My expectations are as follows:

1. The email format is taken from the authoritative source attribute “work_Email”. I take the value in the ‘work_email’ attribute from the attribute firstname.lastname{uniqueCounter}“@domain.company”.

2. If lastname is null or an empty string, the email format becomes: first character of first name.firstname{uniqueCounter}“@domain.company

3. If the “work_email” attribute already has an email value, use that value.

Hi @rsobar

I think you’ll need a cloud rule to accomplish this. Try out using the one below. I’ve used this in a few different scenarios for AD email creation and it has worked well for me.

Let us know if you have any specific questions!

1 Like

Hi @trettkowski , How do you create a cloud rule?

Is it run within the transform ?

Hi @rsobar Nested Transforms should do the job utilising firstValid and substring transforms

Try this Username Generator | SailPoint Developer Community

What kind of limitations are there to the email generator on the “Create Account” page of ISC? At what point should we use a cloud rule?

Thanks in advance and best wishes,
Oliver

I recommend reading up on the Cloud Rules Documentation, found here: Rules | SailPoint Developer Community

This will help you understand what is needed for them, along with the suggestion by @trettkowski for the specific rule to consider for this.

The following section on Provisioning in the Documentations will help understand the available options. Configuring Source Account Provisioning - SailPoint Identity Services

The listed ones do not include transforms, so a generator rule would be suggested. Another option would be to use an IdentityAttribute and Transform to pre-configure the value before the create call happens.