Attribute value lower to upper case conversion

Hi, I need one help. I have one field in one of the email template.

User ID </td>\n\t\t<td style=\"border: 1px solid black;\">{{$.getIdentity.attributes.userNetid}}

Here what is happening is its printing user id but its case sensitive result i.e. if user id is james its printing as james, I am looking value to be printed as JAMES (all caps). Could you please suggest change in code.

Dear Himanshu,

Have you checked the actuval values of this attribute from the source? If it is getting in Upper case from source itself then convert it in the identity profile level by using transforms.

Best Regards,
Siva.K

Hi Siva,
Thanks for your response. Actual value of user id is in lowercase for some users in database. I am looking user id value as upper case only in email template, so could you please suggest if I can do this only in Workflow send email activity. BTW this use case if is from one workflow which sends email to set of peoples on event trigger.

Hi Himanshu,

Before passing value to the workflow you need to change. With in workflow no work around to change values.

Thanks,
Siva.K

Can we use CSS properties here?

If the answer is yes, then add “text-transform: uppercase”. This will transform the input values to uppercase.

Thanks!

Hi @hranjan3, you can try as follows:

In the Send Email action in the workflow, to retrieve the userNetid identity attribute, you can define the following in the templating context.
{"userId.$":"$.getIdentity.attributes.userNetid"}

Then in the email body, you can retrieve the value and upper case it by:
${userId.toUpperCase()}

For more information on templating context: Actions - SailPoint Identity Services

It should be able to capitalize the userNetid attribute in your email. Hope this helps.