<p>With a plugin, you can tie into the <code>userGroups.onAssignUserToGroups</code> event and send your update email directly with the details.</p>

<p><a href="https://craftcms.com/docs/plugins/events-reference#userGroups-onAssignUserToGroups" rel="nofollow noreferrer">https://craftcms.com/docs/plugins/events-reference#userGroups-onAssignUserToGroups</a></p>

CC BY-SA 3.0
2017-03-01T17:59:49.583Z
2017-03-01T18:11:04.043Z
2017-03-01T18:11:04.043Z
ghoward
<p>I have some user groups with different permission and I need to notify them by email when i switch them to another group.</p>

<p>Is there a way to make it automatic by a plugin or via the code directly?</p>

<emails><user-groups>
How to send email to user when we change his group?
# How to send email to user when we change his group?

(Asked by: username_0 on 2017-03-01)

I have some user groups with different permission and I need to notify them by email when i switch them to another group.

Is there a way to make it automatic by a plugin or via the code directly?

**Tags:** emails, user-groups


---

## 1 answers

### Answer by username_1 on 2017-03-01. Score: 1

With a plugin, you can tie into the `userGroups.onAssignUserToGroups` event and send your update email directly with the details.

<https://craftcms.com/docs/plugins/events-reference#userGroups-onAssignUserToGroups>


---

