<p>A bit heavy handed, but the only way I can think of do pull this off, would be to write a <a href="https://pluginfactory.io" rel="nofollow noreferrer">custom plugin</a> with it's own controller action that you change the link in the email to point to instead of Craft's <a href="https://craftcms.com/classreference/controllers/UsersController#actionSetPassword-detail" rel="nofollow noreferrer"><code>UsersController-&gt;actionSetPassword()</code></a>.</p>

<p>That method would be nearly identical to Craft's except at the end, you'd redirect based on the user groups (if any) the <code>$userToProcess</code> is a member of, instead of just the <code>setPasswordSuccessPath</code> config setting.</p>

CC BY-SA 3.0
2017-04-10T20:52:39.993Z
2017-04-10T20:52:39.993Z
Brad Bell
<p>I have a couple different user groups that access the front end of our site and I would like to send them to different paths depending on their user group after setting their password. Is it possible to access a user's group in general config for this purpose?</p>

<config><user-groups>
Different setPasswordSuccessPath for different user groups
# Different setPasswordSuccessPath for different user groups

(Asked by: username_0 on 2017-04-10)

I have a couple different user groups that access the front end of our site and I would like to send them to different paths depending on their user group after setting their password. Is it possible to access a user's group in general config for this purpose?

**Tags:** config, user-groups


---

## 1 answers

### Answer by username_1 on 2017-04-10. Score: 1

A bit heavy handed, but the only way I can think of do pull this off, would be to write a [custom plugin](https://pluginfactory.io) with it's own controller action that you change the link in the email to point to instead of Craft's [`UsersController->actionSetPassword()`](https://craftcms.com/classreference/controllers/UsersController#actionSetPassword-detail).

That method would be nearly identical to Craft's except at the end, you'd redirect based on the user groups (if any) the `$userToProcess` is a member of, instead of just the `setPasswordSuccessPath` config setting.


---

