Build a browser-based HR tool that keeps employee records, attendance, leave requests and approvals inside a Google Sheet. It suits small teams and anyone learning Apps Script who wants a real internal app. You need a Google account plus the Code.gs and Index.html project files.
YouTube video: Build a Complete HR Management System in Google Sheets & Apps Script | SmartHR Full Tutorial #hrms
Caption availability is unknown. Check the CC control in the YouTube player.
- Video length
- 31 min 10 s
- Time to do it
- 45 minutes
- Difficulty
- Medium
- Steps
- 10
What you need
Steps
Create a new Google Sheet to store employees, attendance, leave requests and holidays. Name it SmartHR so you can find it later in Drive.
Open Extensions, then Apps Script. This creates a script bound to your sheet, so the code can read and write your data without extra setup.
Add the two project files: Code.gs for the server-side functions and Index.html for the interface built with HTML, CSS and JavaScript.
Save the project, then click Deploy, then New deployment, and pick Web app as the deployment type.
Set Execute as to Me and Who has access to Anyone with a Google account. Click Deploy and approve the permission prompt.
Copy the web app URL and open it in a browser. Sign in with the default admin login ADMIN001 and the password ChangeMe123!
Change the default password in Settings straight away, then add your managers and their roles so approvals reach the right person.
Add employee records in Employee Management. Each person needs a name, ID, email and role before they can log attendance or request leave.
Set up leave types and balances, then add public holidays to the calendar so working days are counted correctly.
Open the dashboard to check attendance, pending leave requests and reports. Approve one test request to confirm the workflow works end to end.
Tips and common mistakes
Change the default ADMIN001 password before you share the web app link with anyone.
After editing Code.gs or Index.html, deploy a new version, or the live app keeps running the old code.
Test on a copy of your sheet first so a wrong formula or delete does not wipe real employee records.
Keep employee documents in a dedicated Drive folder and share it only with the roles that need it.
Questions
Do I need to pay for anything?
No. Google Sheets and Apps Script are free with a Google account, and the app runs inside your own Drive.
Can employees use it without seeing the spreadsheet?
Yes. Share only the web app link and keep the sheet private. The script runs with your permissions.
Why does the app show an error after I edit the code?
You likely edited the script without publishing a new version. Go to Deploy, Manage deployments, and publish the latest version.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


