One shared door code is a quiet problem for a small office: everyone knows it, nobody remembers who shared it, and when someone leaves, the code either stays or the whole team must learn a new one. A smart lock only fixes this if the codes behind it are set up properly. The lock is the easy part; the system of who gets which code, when it works, and how fast it can be taken away is what keeps the office secure.
Setting up staff codes is not a technical project: most keypad locks let a manager create a personal code for each person in minutes. The work that matters is planning how codes are named, how long they last, and what happens on a staff member’s last day.
This guide covers the whole setup, from the first master code to changing codes when someone leaves, for a small office with a keypad lock and one person in charge of access.
Key takeaways
- Give every staff member their own code; never share one code across the team.
- Keep the master code separate from staff codes, and limit who knows it to one or two people.
- Use scheduled or temporary codes for cleaners, contractors, and visitors, never a staff code.
- Change or delete a code on a staff member’s last day, before they leave if possible.
- One named person should own the codes, keep the list current, and check the entry log.
What a staff smart lock code actually is
A smart lock code is a short number, usually four to eight digits, typed into a keypad to open a door. Each code can carry its own rules: which days and hours it works, and whether it expires. A staff code is one entry, tied to one person, and on most models the lock records each entry with its time.
That beats a shared code or a metal key: a shared code cannot tell you who came in, and a metal key can be copied unseen. With personal codes, the entry log shows who arrived and when, and a code can be switched off in seconds without touching the lock or reissuing anything to anyone else. Our roundup of the best smart locks for small offices in 2027 covers which models handle many codes, entry logs, and scheduled access well. Most office locks hold 50 or more codes, so capacity is rarely the limit. The real limit is discipline: without maintenance, old staff keep working codes and the list stops matching the people in the office.
Plan your codes before you type a single digit
Before opening the lock app, decide on a naming system: label every code with the person’s name and role, such as “Priya — reception”, plus the creation date if the app allows notes. One person should own the job, with one backup for holidays.

For length, four digits are easy to remember but easy to guess, so six digits are a better default. Avoid obvious patterns such as 123456, repeated digits, or a code that matches the office address or phone number. Ask staff to keep codes private, like passwords, and never write them on notes near the door. Store them like any other business credential: our guide to the best password managers for business in 2027 covers tools that hold the master code and admin login safely.
Step 1: Create the master code and lock down admin access
Start by setting the master code, sometimes called the admin or programming code. This code opens the door and unlocks the lock’s settings, so it is the most powerful code on the door. Choose six to eight digits, different from any staff code, and share it with as few people as possible: the office manager and one trusted backup. Then secure the app account, where codes are created and deleted, with a strong unique password, two-factor authentication if offered, and a business email rather than a personal inbox. Keep the login in the company password manager, test the master code once from outside, and turn on auto-lock with a 30-second delay.
Step 2: Give every staff member their own code
With the master code in place, add one code per person: create a new user in the app, type their name, and assign a six-digit code. Give the code to that person directly, in person or by private message, never in a group chat. Ask each person to test their code on their next arrival: a mistyped setup code is a common cause of Monday-morning lockouts, far easier to fix on a quiet afternoon than at 9 a.m. If a staff member changes role or door, update the label rather than creating a second code. One person, one code, one label: that rule keeps the entry log meaningful, because every entry points to exactly one name.
Step 3: Set schedules and temporary codes for visitors
Not everyone who needs the door is staff. Cleaners, contractors, and interview candidates all need access sometimes, and each group needs a different kind of code. Never hand any of them a staff code: use scheduled and temporary codes instead. For regular visitors such as a cleaner, create a scheduled code that works only on the days and hours they are expected, for example Tuesday and Friday evenings between 6 p.m. and 9 p.m. Outside those hours the code does nothing. For one-off visitors, create a temporary code that expires after 24 hours and send it shortly before the visit. Check the lock’s limits first: some locks allow only a few scheduled codes, and some delete expired temporary codes automatically while others leave them listed. Once a month, remove any temporary code that has served its purpose: one that never gets deleted is just a permanent code with a misleading name.
Step 4: Test every code before the working day starts
Testing sounds dull, and it prevents the most common office lock problem: a staff member locked outside with a code that does not work. After any changes, test every new and changed code, plus a few existing ones after a battery change or update. Test from outside, with the door closed, as staff use it: type slowly, wait for the confirmation sound or light, and check the door opens and locks behind you. Also test the fallback: a physical key, a second admin code, or a code held by the backup manager. Store the backup key somewhere sensible, such as a locked drawer or with the building manager, and make sure at least two people know where it is. A smart lock without a working backup is a single point of failure, and batteries always run out on the least convenient day.
Step 5: Change codes when someone leaves
This is the step that matters most, and the one most often skipped. When a staff member leaves, delete or change their code on their last day, ideally before they walk out. Do not leave it active “just in case”: if they need to come back, issue a temporary code for that visit. It takes less than a minute in the app: find the person’s name and delete or disable their code, then check the entry log. Leavers are not the only trigger. Change a code if you suspect it was shared, after a break-in, and at least once a year, when you should also audit the whole list and delete anything unlabelled. If the list has entries you cannot explain, treat that as a warning sign and reset the codes for that door.
| Detail | What to do |
|---|---|
| Staff codes | One unique six-digit code per person, labelled with name and role |
| Master code | Six to eight digits, known to one or two people only, never used daily |
| Visitors | Scheduled codes for regulars, temporary codes that expire for one-off visits |
| When someone leaves | Delete or disable their code on their last day, before they leave |
| Code audit | Check the full list monthly and refresh codes at least once a year |
| Backup entry | Physical key or second admin code, stored securely and known to two people |
Troubleshooting: when a code does not work
The most common cause of a failed code is a typing error, especially on a keypad that has gone to sleep. Wake it first, type slowly, and try again. If it still fails, check whether the code is scheduled: a cleaner code typed on the wrong day will be refused even though the digits are correct. If several codes fail at once, the problem is usually the lock rather than the codes. Low batteries are the first suspect, and many locks warn in the app before they stop working. Replace the batteries and test again. When one code fails and nothing else explains it, delete it and create a new one rather than sharing another staff member’s code, which breaks the entry log. If the keypad itself is unresponsive, use the physical key backup and contact the lock maker’s support. Passkeys are also becoming an alternative to codes on some doors, as our explainer on what a passkey is for business covers.
Checklist: a tidy code system in ten minutes a month
Run these checks once a month.
- Match every code in the app to a current staff member or visitor.
- Delete codes for anyone who has left, and any temporary code that has expired.
- Confirm the master code is known to the right people and stored securely, not on paper near the door.
- Check the entry log for anything odd, such as late-night entries or codes used while the person was away.
- Test two or three codes from outside the door, including one scheduled visitor code.
- Check the battery level and confirm the physical backup key is where it should be.
Frequently asked questions
How many digits should a staff smart lock code have?
Six digits is a good default: four are easier to remember but far easier to guess, while eight are more secure but more often mistyped.
Should every staff member really have their own code?
Yes. Only a personal code lets the entry log show who came in and when, and lets you remove one person’s access without changing the code for everyone else. A shared team code gives up both benefits.
What should I do when a staff member forgets their code?
Look it up in the app and remind them privately, or delete it and create a new one. Never send it in a group chat, and never lend them someone else’s code.
Can a cleaner or contractor keep the same code every week?
Yes, if it is a scheduled code that only works during their agreed hours. Review scheduled codes every few months and delete them when the arrangement ends.
Does changing a code require changing the lock?
No. Codes are changed in the lock’s app or on its keypad, and the change takes effect immediately on most models. The lock only needs replacing if it is faulty, damaged, or no longer supported.
What happens to codes if the internet goes down?
Codes stored on the lock keep working without internet, because the keypad talks to the lock directly. What stops is remote management: you cannot add or delete codes from the app until the connection returns.
The bottom line
Setting up smart lock codes is a small job with an outsized payoff. One code per person, a guarded master code, scheduled codes for visitors, and deleting codes on a leaver’s last day cover almost every access problem a small office faces. The lock does the mechanical work; the routine does the security work.
Start with the plan, not the app: names, roles, code lengths, and one named owner. Then add the codes, test them, and put the monthly check on the calendar.


