InterviewDB Question

Permission System OOD - Role-Based Access Control Implementation

Question Details

Problem Design a role-based access control (RBAC) system. Users are assigned roles; roles have permissions; permissions are (resource, action) pairs. Implement: add_role(role_name) grant_permission(role_name, resource, action) assign_role(user_id, role_name) can(user_id, resource, action) -> bool revoke_role(user_id, role_name) Roles can inherit from other roles. Example: Follow-ups How do you handle circular inheritance (role A inherits B inherits A)? How would you scale can() checks to million…

Full Details

🔒

Unlock all Sigma Computing 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 sigma computing interview during the phone round.

It covers the following topics: Coding, Phone .