# Notify Supervisor of the credentials for the new user via e-mail

**URL:** <https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139>\
**Category:** Identity Life Cycle Management\
**Created:** [May 22, 2025, 2:04pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139 "2025-05-22T14:04:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bizz](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@Bizz](https://community.openiam.com/u/Bizz)\
**Post date:** [May 22, 2025, 2:04pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/1 "2025-05-22T14:04:25Z")

</div>

Dear community,

I would like to ask about the notification settings for a manager when a new user is created.

When I manually create a new user in the UI, in the Classic View there is a checkbox labeled:  
**“Notify Supervisor of the credentials for the new user via e-mail. Requires a supervisor to be selected.”**

 ![obrazek](https://canada1.discourse-cdn.com/flex010/uploads/openiam_community/original/1X/6b6d2ca5560f79b89dee1b3ba95e7b2c407ee4b7.png)

However, when I load new users from an MS SQL HR database, how can I trigger this setting? In other words, is there a way to send a notification to the manager, or to another email address, once provisioning is completed?

Among the mail templates, I found one called `NEW_USER_EMAIL_SUPERVISOR`, but I’m not sure how to use it. I also didn’t find any demonstration of this in the training videos.

Thank you very much in advance for your help.  
Jan

---

<div class="post-metadata">

**Author:** ![ameet\_shah](https://yyz2.discourse-cdn.com/flex010/user_avatar/community.openiam.com/ameet_shah/32/17_2.png) [@ameet\_shah](https://community.openiam.com/u/ameet_shah)\
**Post date:** [May 28, 2025, 5:08pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/2 "2025-05-28T17:08:25Z")

</div>

Hello Jan,

To notify the supervisor via email when new users are loaded from your MS SQL HR database, you can enable this functionality directly within your transformation script.

Please add the following line to your script:

```auto
pUser.setEmailCredentialsToSupervisor(true);

```

This will ensure that, upon user creation, an email with the user’s credentials is automatically sent to the designated supervisor (assuming a supervisor is defined for the user).

Please let me know if you have any other questions.

Thanks,  
Ameet

---

<div class="post-metadata">

**Author:** ![Bizz](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@Bizz](https://community.openiam.com/u/Bizz)\
**Post date:** [May 29, 2025, 11:59am UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/3 "2025-05-29T11:59:54Z")

</div>

Hello Ameet,  
thank you so much. It works 🙂

One more question. Is there a way to configure sending a copy of these notifications to a specific predefined mailbox, for example, for the IT administrator?

Thank you.  
Jan

---

<div class="post-metadata">

**Author:** ![ameet\_shah](https://yyz2.discourse-cdn.com/flex010/user_avatar/community.openiam.com/ameet_shah/32/17_2.png) [@ameet\_shah](https://community.openiam.com/u/ameet_shah)\
**Post date:** [May 30, 2025, 6:57pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/4 "2025-05-30T18:57:29Z")

</div>

Hello Jan,

Yes, this can be configured in OpenIAM. You can send a copy of notifications to a predefined mailbox by modifying the SMTP configuration and/or customizing the notification templates to include additional recipients (like a monitoring or audit mailbox).

For details, refer to the [SMTP Configuration section of the OpenIAM 4.2.1.10 documentation](https://docs.openiam.com/docs-4.2.1.10/admin/12-administration/2-mail-management/2-smtpconfig).

Thanks,  
Ameet

---

<div class="post-metadata">

**Author:** ![Bizz](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@Bizz](https://community.openiam.com/u/Bizz)\
**Post date:** [June 2, 2025, 9:46am UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/5 "2025-06-02T09:46:55Z")

</div>

Thank you, Ameet, this is exactly what I was looking for 🙏

---

<div class="post-metadata">

**Author:** ![pamela.gabagat](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pamela.gabagat](https://community.openiam.com/u/pamela.gabagat)\
**Post date:** [June 17, 2025, 2:42pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/6 "2025-06-17T14:42:40Z")

</div>

Hi @ameet_shah,

The below script was already added to my transformation script. However, supervisor was not able to receive the notification email upon user creation.

pUser.setEmailCredentialsToSupervisor(true);

SMTP relay is working as I tried to sent test mail and it works.

Thank you in advance for your assistance.

---

<div class="post-metadata">

**Author:** ![ameet\_shah](https://yyz2.discourse-cdn.com/flex010/user_avatar/community.openiam.com/ameet_shah/32/17_2.png) [@ameet\_shah](https://community.openiam.com/u/ameet_shah)\
**Post date:** [June 19, 2025, 6:41pm UTC](https://community.openiam.com/t/notify-supervisor-of-the-credentials-for-the-new-user-via-e-mail/139/7 "2025-06-19T18:41:51Z")

</div>

Hello Pamela,

Could you please check if the mail template related to sending credentials to the supervisor is enabled?

You can verify this by following the steps below:

1. Go to **Webconsole** → **Administration** → **Mail Template Editor**

2. Search for the template with the name: **`NEW_USER_EMAIL_SUPERVISOR`**

3. Ensure that it is **enabled** and properly configured.  

Thanks,  
Ameet
