I am building a project in which i want two types of users :- 1:Organization 2:Memeber
Auth plugin :- Supabase
Problem :- I want that Organization user can add 3 members, who can login with their respective credentials and access the data.
Hi @kavi
Not sure I understand this part:
Does that mean that if I’m logged in your WeWeb app as a user with the organization
role:
- I can create up to 3 users but not more, and
- those users (the ones that I create) should only have the
member
role?
I think a lot of that logic will need to happen In Supabase directly.
In WeWeb, you can:
- create the workflow that allows a user to create other users (the security to make sure the user has the
organization
role should happen in Supabase), - configure the Supabase Auth plugin so it knows where to find a user’s role
- create private pages that are restricted to authenticated users and/or users with a specific role
Hii @Joyce ,
You have caught the right problem.
I just want to know how i can make a workflow , that allows a organization user to create maximum 3 member users(who can login in weweb app)
Important :- Organization user will create the member , after that created member can login with their credentials.
I think this is more of a Data Structure problem, than a WeWeb thing. You need to set the ground on the Supabase and how your data is structured side, then in WeWeb, you check on that.