This admin dashboard application provides a comprehensive interface for managing users, roles, and permissions. Built with Next.js 14+, the dashboard offers a secure and intuitive way for administrators to handle user management, role assignments, and permission controls.
-
User Management
- Complete CRUD operations for user accounts
- User status management (Active/Inactive)
- Role assignment interface
- Bulk user operations
-
Role Management
- Role creation and modification
- Permission assignment to role.
- Custom attribute support
-
Permission System
- Granular permission controls
- Dynamic permission assignment
- Permission inheritance
- Access level visualization
-
Node.js: Version 18.17 or later
- Download from nodejs.org
- Verify installation:
node --version
-
Package Manager: npm (included with Node.js) or yarn
- If using yarn, install it via:
npm install -g yarn
- If using yarn, install it via:
RBAC_Assignment/
├── .next/
├── node_modules/
├── public/
├── src/
│ ├── app/
│ │ └── (pages)/
│ │ ├── dashboard/
│ │ ├── roles/
│ │ └── users/
│ │ ├── components/
│ │ ├── fonts/
│ │ ├── store/
│ │ ├── types/
│ │ ├── utils/
│ │ ├── globals.css
│ │ ├── layout-client.tsx
│ │ ├── layout.tsx
│ │ └── page.tsx
└── package.json
-
Clone the Repository
git clone https://github.com/vinayrewatkar/RBAC_Assignment.git cd RBAC_Assignment
-
Install Dependencies
npm install # or yarn install
-
Run Development Server
npm run dev # or yarn dev
The user management system provides the following capabilities:
- User Creation: Add new users with basic information and role assignment
- User Editing: Modify user details, status, and role associations
- User Deletion: Remove users with proper authorization
- Status Management: Toggle user status between Active and Inactive
- Role Assignment: Assign multiple roles to users with visual feedback
The role management interface allows:
- Role Definition: Create and modify roles with custom attributes
- Permission Assignment: Assign granular permissions to roles
- Role Analysis: View role usage and permission overview
The permission system includes:
- Permission Types:
- Read: View access to resources
- Write: Create and modify resources
- Delete: Remove resources
- Custom: Define specialized permissions
- Access Control: Fine-grained control over feature access