# How to assign Superbase User Roles when signing-up

**URL:** <https://community.weweb.io/t/how-to-assign-superbase-user-roles-when-signing-up/6321>\
**Category:** Ask us anything\
**Tags:** authentication, supabase\
**Created:** [January 11, 2024, 12:32pm UTC](https://community.weweb.io/t/how-to-assign-superbase-user-roles-when-signing-up/6321 "2024-01-11T12:32:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SNeJ](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@SNeJ](https://community.weweb.io/u/SNeJ)\
**Post date:** [January 11, 2024, 12:32pm UTC](https://community.weweb.io/t/how-to-assign-superbase-user-roles-when-signing-up/6321/1 "2024-01-11T12:32:00Z")

</div>

Hello,

I’m using Superbase Auth in my project and used this [Guide](https://docs.weweb.io/plugins/auth-systems/supabase-auth.html) to setup everything.

I was able to create Users from Sign-up, **But Now my problem is How Do I set the User Roles using this sign-up submit action.**

When I try to update the Joining table of Users & Roles, getting bellow error

![Screenshot 2024-01-11 at 13.31.14](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/22d8b5dbb32d571f8b3e851c2ffeb13723c76952.png)

Thanks in advanced

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [January 12, 2024, 12:00am UTC](https://community.weweb.io/t/how-to-assign-superbase-user-roles-when-signing-up/6321/2 "2024-01-12T00:00:24Z")

</div>

your issue is to do with row level security or RLS for the tables involved you will need to go to authentication, policies and then add then add a policy to allow inserting.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c38666ef1cd97540b6ba9614e21a2e2f78732729.png)

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [January 12, 2024, 12:04am UTC](https://community.weweb.io/t/how-to-assign-superbase-user-roles-when-signing-up/6321/3 "2024-01-12T00:04:26Z")

</div>

What are the policies on your userRoles table.
