<p>Off the top of my head, the pseudocode would be something like:</p>

<ol>
<li>Listen for the <code>EVENT_BEFORE_SAVE_ELEMENT</code> event.</li>
<li>Check if it's a new user registration.</li>
<li>If so, check the user group status.</li>
<li>Apply account activation email logic based on #3.</li>
</ol>

CC BY-SA 4.0
2019-09-13T23:32:19.323Z
2019-09-13T23:47:44.843Z
2019-09-13T23:47:44.843Z
Brad Bell
<p>I am developing a website which is having two user groups. The users of first user group will have self activation email with account activation link while second user group will be activated by admin after registration. As there is Users Setting for "Verify email addresses?" but we can't do it for specific user group. Is there any solution for it? Please suggest if possible with plugin.</p>

CC BY-SA 4.0
2019-09-09T21:19:37.907Z
I'm not aware of an existing plugin that would do this, but are you comfortable writing one?
Brad Bell
CC BY-SA 4.0
2019-09-10T05:18:00.007Z
Thanks Brad, could you please give me some idea if there is any event or hook we can control it.
Bhashkar Yadav
<craft3><user-groups><activation>
Disable activation link email for a specific user group
# Disable activation link email for a specific user group

(Asked by: username_0 on 2019-09-07)

I am developing a website which is having two user groups. The users of first user group will have self activation email with account activation link while second user group will be activated by admin after registration. As there is Users Setting for "Verify email addresses?" but we can't do it for specific user group. Is there any solution for it? Please suggest if possible with plugin.

**Tags:** craft3, user-groups, activation

> **Comments:**
> **username_1**: I'm not aware of an existing plugin that would do this, but are you comfortable writing one?  
> **username_0**: Thanks Brad, could you please give me some idea if there is any event or hook we can control it.  

---

## 1 answers

### Answer by username_1 on 2019-09-13. Score: 1

Off the top of my head, the pseudocode would be something like:

1. Listen for the `EVENT_BEFORE_SAVE_ELEMENT` event.
2. Check if it's a new user registration.
3. If so, check the user group status.
4. Apply account activation email logic based on #3.


---

