# Assign Role afte email verification

**URL:** <https://community.auth0.com/t/assign-role-afte-email-verification/73475>\
**Category:** Get Help\
**Created:** [November 19, 2021, 9:39pm UTC](https://community.auth0.com/t/assign-role-afte-email-verification/73475 "2021-11-19T21:39:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenny.maurer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kenny.maurer/32/12848_2.png) [@kenny.maurer](https://community.auth0.com/u/kenny.maurer)\
**Post date:** [November 19, 2021, 9:39pm UTC](https://community.auth0.com/t/assign-role-afte-email-verification/73475/1 "2021-11-19T21:39:21Z")

</div>

Hey there

for our application we need to set a default role to every user after he verifies his email. I already have an post login action in place which denies login if the user has not verified his email.

Is there a way to accomplish this with actions?

Thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 26, 2021, 6:12pm UTC](https://community.auth0.com/t/assign-role-afte-email-verification/73475/3 "2021-11-26T18:12:30Z")

</div>

Hi @kenny.maurer,

Welcome to the Auth0 Community!

You should be able to add a role to the user using the node-auth0 module in a post-login action. You can use your existing Action and add the role if the user is verified. If you need some help constructing the rule let me know and I’ll be happy to help.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 11, 2021, 6:12pm UTC](https://community.auth0.com/t/assign-role-afte-email-verification/73475/4 "2021-12-11T18:12:49Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
