DEV Community

Implementing Role-Based Access Control in Next.js App Router using Clerk Organizations

eugene musebe on July 31, 2023

Introduction It is crucial to protect user data and control access to various application features in the dynamic world of web developme...
Collapse
 
mihancode2gochistie profile image
Syed Md Mihan Chistie

Man this is even better than the original Clerk docs

Collapse
 
musebe profile image
eugene musebe

This warms my heart. Am glad you loved the article.

Collapse
 
shiro15 profile image
Dovey

This is what i've been looking for ❤

Collapse
 
musebe profile image
eugene musebe

Glad you found the article helpful

Collapse
 
nayem9b profile image
Md Razwan Niam

Just wow. Lots of thanks

Collapse
 
musebe profile image
eugene musebe

Delighted you found the article a gem! 😊 If you have any more questions or need further insights, feel free to ask. Happy to assist!

Collapse
 
seagull29 profile image
Erian

By reading the Clerk docs I've found that the free plan only allows any organization to have up to 5 members. If I'm not wrong, would my app only be allowed to manage 5 users, and all the 10000 active users per free plan wouldn't be taking advantage of the roles?

Collapse
 
l_nichols_4b77f33c095a19d profile image
L Nichols

userOrganizations is deprecated... now you have to use "userMemberships"

Collapse
 
musebe profile image
eugene musebe

Thanks for the update. I’ll update the project and documentation

Collapse
 
osimarex profile image
osimarex

I just get 'userMemberships.find is not a function' when i changed it from the deprecated 'organizationList'.

Collapse
 
ramybr profile image
ramybr

Can you provide a tutorial on how to make a user an admin (or a moderator if he's an admin) through the "Make Admin"/ "Make Moderator" buttons in the admin dashbord ? Much appreciated

Collapse
 
musebe profile image
eugene musebe

sure, let me see what I can do. I'll update you when. the article is done