<p>You could do this in a plugin by listening for some user-related events.  In particular, <a href="http://buildwithcraft.com/docs/plugins/events-reference#users-onBeforeActivateUser" rel="nofollow">onBeforeActivateUser</a>, where you could cancel user activation by setting <code>$event-&gt;performAction = false;</code></p>

CC BY-SA 3.0
2014-12-11T15:56:37.490Z
Ok looks like I might have to delve into Plugin Development. I assume this is my best starting point: http://buildwithcraft.com/docs/plugins/introduction
mmc501
CC BY-SA 3.0
2014-12-11T16:13:32.857Z
That's a good start!
Brad Bell
CC BY-SA 3.0
2014-12-11T14:40:08.303Z
2014-12-11T16:13:17.767Z
2014-12-11T16:13:17.767Z
Brad Bell
<p>Some sort of workaround</p>

<ul>
<li>You can make a register user group with no permissions.  </li>
<li>Than add another group with the permissions you want.</li>
</ul>

<p>After registration, the admin can put a new user to the new group. </p>

CC BY-SA 3.0
2015-02-09T12:27:02.780Z
@mmc501 you can always add another conditional to your template to check for the user's group before giving access.
carlcs
CC BY-SA 3.0
2014-12-11T15:58:44.507Z
Thanks but not sure if it will work in this case. the Login is basically to access the whole front end of the site - so once activated they can get in. Unless the login script can only grant access to specific user groups?
mmc501
CC BY-SA 3.0
2014-12-11T15:45:15.770Z
2014-12-11T15:45:15.770Z
Johannes Lamers
<p>I have set up a public registration form simply using the User registration form: <a href="https://craftcms.com/docs/templating/user-registration-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/user-registration-form</a></p>

<p>Is there a way to set it so that when users register they need to be activated by an admin account?</p>

<p>Currently when they register they get an email to verify email address and when they do they get activated.
If I turn off verify email addresses in user settings they simple get activated automatically.</p>

<users><registration><activation>
User Registration - Keep as inactive until verified by admin
# User Registration - Keep as inactive until verified by admin

(Asked by: username_0 on 2014-12-11)

I have set up a public registration form simply using the User registration form: <https://craftcms.com/docs/templating/user-registration-form>

Is there a way to set it so that when users register they need to be activated by an admin account?

Currently when they register they get an email to verify email address and when they do they get activated.
If I turn off verify email addresses in user settings they simple get activated automatically.

**Tags:** users, registration, activation


---

## 2 answers

### Answer by username_1 on 2014-12-11. Score: 2 | Accepted answer

You could do this in a plugin by listening for some user-related events. In particular, [onBeforeActivateUser](http://buildwithcraft.com/docs/plugins/events-reference#users-onBeforeActivateUser), where you could cancel user activation by setting `$event->performAction = false;`

> **Comments:**
> **username_0**: Ok looks like I might have to delve into Plugin Development. I assume this is my best starting point: http://buildwithcraft.com/docs/plugins/introduction  
> **username_1**: That's a good start!  

---

### Answer by username_2 on 2014-12-11. Score: 3

Some sort of workaround

* You can make a register user group with no permissions.
* Than add another group with the permissions you want.

After registration, the admin can put a new user to the new group.

> **Comments:**
> **username_0**: Thanks but not sure if it will work in this case. the Login is basically to access the whole front end of the site - so once activated they can get in. Unless the login script can only grant access to specific user groups?  
> **username_3**: @username_0 you can always add another conditional to your template to check for the user's group before giving access.  

---

