{"id":19315238,"url":"https://github.com/bruhathisp/useraccessmanagement","last_synced_at":"2026-04-17T05:03:44.523Z","repository":{"id":261977540,"uuid":"885458178","full_name":"bruhathisp/UserAccessManagement","owner":"bruhathisp","description":"A web-based application that enables organizations to efficiently manage user access requests for various software applications. It implements role-based access control (RBAC), allowing users to submit access requests, managers to approve/reject them, and admins to manage the overall system and software.","archived":false,"fork":false,"pushed_at":"2024-11-30T13:04:02.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T03:41:37.467Z","etag":null,"topics":["apache-tomcat","java","javaee","maven","postgresql","rabc"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bruhathisp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-08T16:13:13.000Z","updated_at":"2024-12-01T00:32:37.000Z","dependencies_parsed_at":"2024-11-09T17:33:32.694Z","dependency_job_id":"7d852b7f-1e13-48db-9910-c08d2172f6fe","html_url":"https://github.com/bruhathisp/UserAccessManagement","commit_stats":null,"previous_names":["bruhathisp/useraccessmanagement"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruhathisp%2FUserAccessManagement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruhathisp%2FUserAccessManagement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruhathisp%2FUserAccessManagement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bruhathisp%2FUserAccessManagement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bruhathisp","download_url":"https://codeload.github.com/bruhathisp/UserAccessManagement/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240416947,"owners_count":19797910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache-tomcat","java","javaee","maven","postgresql","rabc"],"created_at":"2024-11-10T01:05:30.179Z","updated_at":"2026-04-17T05:03:44.486Z","avatar_url":"https://github.com/bruhathisp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Access Management System (Leucine Project)\n\n## Overview\n\nThe **User Access Management System** is a web-based platform designed to streamline and automate user access requests within an organization. It leverages **role-based access control (RBAC)**, offering distinct functionalities for three types of users:\n\n- **Employee**: Can request access to various software applications.\n- **Manager**: Can view, approve, or reject access requests submitted by employees.\n- **Admin**: Has full control to manage software applications and user roles, ensuring secure access management across the system.\n\nThis project utilizes **Java Servlets**, **JSPs**, and **PostgreSQL** to handle backend processing, data storage, and user authentication. Deployed with **Apache Tomcat** as a web server and managed via **Maven**, it ensures a robust, scalable, and secure environment to handle user access efficiently.\n\n---\n\n## Project Architecture\n\n### Key Technologies:\n- **Backend**: Java Servlets \u0026 JSP (JavaServer Pages)\n- **Database**: PostgreSQL (used for storing users, software, and access requests)\n- **Build Tool**: Maven (for project management and build automation)\n- **Server**: Apache Tomcat (for deploying the web application)\n\n### Roles:\n- **Employee**: Can submit access requests for software.\n- **Manager**: Approves or rejects software access requests.\n- **Admin**: Manages users, software, and all access-related functionality.\n\n---\n\n## Prerequisites\n\nBefore running the project, ensure that you have the following installed and configured:\n\n- **Java 17 or later**\n- **Maven** (to build and run the project)\n- **PostgreSQL** (configured with required tables and default users)\n\n---\n\n## Dependencies Breakdown\n\n1. **Jakarta EE API**: This is the Jakarta platform API that includes all the specifications for web applications (like Servlets, JSP, etc.).\n   - **Version**: `10.0.0`\n   - **Scope**: `provided` because Tomcat will provide the runtime environment for the application.\n\n2. **PostgreSQL JDBC Driver**: This is the JDBC driver required to connect your Java application to a PostgreSQL database.\n   - **Version**: `42.3.1` (or the latest stable version)\n\n3. **Servlet API**: Although the Jakarta EE API should cover Servlets, some configurations or Tomcat setups might require the `javax.servlet-api` dependency.\n   - **Version**: `4.0.1`\n   - **Scope**: `provided` (same reason as above).\n\n---\n\n\n## Database Setup\n\n### Required Tables\n\nEnsure the following tables exist in your PostgreSQL database. You can find the SQL script to create these tables in the `sql` directory of the project.\n\n```sql\nCREATE TABLE IF NOT EXISTS users (\n    id SERIAL PRIMARY KEY,\n    username TEXT NOT NULL UNIQUE,\n    password TEXT NOT NULL,\n    role TEXT NOT NULL CHECK (role IN ('Employee', 'Manager', 'Admin'))\n);\n\nCREATE TABLE IF NOT EXISTS software (\n    id SERIAL PRIMARY KEY,\n    name TEXT NOT NULL UNIQUE,\n    description TEXT,\n    access_levels TEXT CHECK (access_levels IN ('Read', 'Write', 'Admin'))\n);\n\nCREATE TABLE IF NOT EXISTS requests (\n    id SERIAL PRIMARY KEY,\n    user_id INTEGER REFERENCES users(id) ON DELETE CASCADE,\n    software_id INTEGER REFERENCES software(id) ON DELETE CASCADE,\n    access_type TEXT NOT NULL CHECK (access_type IN ('Read', 'Write', 'Admin')),\n    reason TEXT,\n    status TEXT DEFAULT 'Pending' CHECK (status IN ('Pending', 'Approved', 'Rejected'))\n);\n\n-- Default Manager and Admin Users\nINSERT INTO users (username, password, role) VALUES\n('manager', 'manager_password', 'Manager'),\n('admin', 'admin_password', 'Admin');\n```\n\n\u003e **Note:** Remember to replace `'manager_password'` and `'admin_password'` with actual secure passwords.\n\n---\n\n## Running the Project\n\nFollow these steps to set up and run the project:\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/your-username/User-Access-Management-System.git\ncd User-Access-Management-System\n```\n\n### 2. Configure Database Connection\n\nMake sure to update the database connection details in the servlets. Example database connection:\n\n```java\nString jdbcUrl = \"jdbc:postgresql://127.0.0.1:5432/postgres\";\nString dbUser = \"postgres\";\nString dbPassword = \"password\";\n```\n\n### 3. Build the Project\n\nUse **Maven** to compile and package the project:\n\n```bash\nmvn clean package\n```\n\n### 4. Deploy to Tomcat\n\n- Copy the generated `.war` file (located in the `target` directory) to the **Tomcat webapps** folder.\n- Start or restart Tomcat.\n\n### 5. Access the Application\n\nOpen a web browser and navigate to:\n\n```\nhttp://localhost:8080/mavenproject1\n```\n\nLogin with the following credentials:\n\n- **Manager**: username = `manager`, password = `manager_password`\n- **Admin**: username = `admin`, password = `admin_password`\n\n---\n\n## Features\n\n- **Login**: Users log in based on their roles (Employee, Manager, Admin).\n- **Sign Up**: New users can sign up with the default \"Employee\" role.\n- **Request Access**: Employees can request access to software.\n- **Approve/Reject Requests**: Managers can manage software access requests.\n- **Create Software**: Admins can add new software applications to the system.\n\n---\n\n## Project Structure\n\n```plaintext\nUserAccessManagement/\n├── src/\n│   └── servlets/\n│       ├── SignUpServlet.java\n│       ├── LoginServlet.java\n│       ├── SoftwareServlet.java\n│       ├── RequestServlet.java\n│       └── ApprovalServlet.java\n├── webapp/\n│   ├── signup.jsp\n│   ├── login.jsp\n│   ├── createSoftware.jsp\n│   ├── requestAccess.jsp\n│   └── pendingRequests.jsp\n├── WEB-INF/\n│   └── web.xml\n└── pom.xml\n```\n\n---\n\n## Troubleshooting\n\n- **Database Connection Errors**: Ensure that the PostgreSQL database is running and credentials are correct.\n- **Class Not Found Errors**: Verify that the necessary dependencies are correctly specified in the `pom.xml` file. Run `mvn clean package` again to ensure the dependencies are correctly resolved.\n- **Deployment Issues**: Make sure to restart Tomcat after deploying the `.war` file.\n\n---\n\n\n## Contact\n\nFor any issues or contributions, feel free to open an issue or submit a pull request on GitHub.\n\n---\n\n## Acknowledgements\n\n- **Apache Tomcat** for serving the application.\n- **PostgreSQL** for reliable database management.\n- **NetBeans IDE** for development.\n\n--- \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruhathisp%2Fuseraccessmanagement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruhathisp%2Fuseraccessmanagement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruhathisp%2Fuseraccessmanagement/lists"}