InterviewDB Question

User Permissions: Design a Role-Based Access Control System with Inheritance

Question Details

Problem Implement a role-based access control (RBAC) system where roles can inherit permissions from parent roles. Given a user's assigned roles, determine whether they are authorized for a given action on a resource. Example: Follow-ups How do you detect and prevent circular role inheritance? If a user has two roles and one explicitly denies an action, should deny override allow? How would you support resource wildcards, e.g. can(user, "read", "article:*")? How would you audit all permissions a…

Full Details

🔒

Unlock all Notion questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a notion interview during the phone round.

It covers the following topics: Coding, Phone .