Employee Document Management is the ServiceNow application that stores employee files in one repository. Each document carries a document type, and that type decides who can read it, how long it is kept, when it may be purged and whether a legal hold freezes it. Setup starts with activation, then the policies, then how files arrive.
What the application stores and how documents are classified
The repository works as a central filing cabinet for employee paperwork. A document type can cover a broad category of employee paperwork, such as benefits documents, or a narrower kind of document. Staff can filter the list by column and download a batch of files as a zip archive.
Classification sits at the center of the design. A document type gathers the handling rules: a security policy, a retention policy, a legal hold and an employee access setting. It can also link to a topic detail in HR Service Delivery, which categorizes the document type. A retention policy belongs to exactly one document type, although one type can hold many documents. The default retention period for a document type is defined on its corresponding Center of Excellence. For how those centers are structured, see the HR Service Delivery Center of Excellence design guide.
Activating the plugin and its prerequisites
Activation is an admin task. Search for the plugin by name or ID under All, System Applications, All Available Applications, and select Install. The plugin brings demo data and switches on any related plugins that are not already active. With domain separation and delegated administration enabled, the installer must sit in the global domain, or installation is refused while another operation runs.
Bulk import needs two more plugins: Orchestration for local directories and the IntegrationHub Installer for third-party cloud storage. Both carry separate subscriptions and must be activated by ServiceNow personnel. The core plugin must be activated last.
Retention periods, retention policies and default rules
A retention period measures time from a date field you choose on the employee document, such as its created date. You choose whether the clock starts before or after that date, whether it counts months or years, and how many. Each retention period record must be unique. A retention policy then pairs a period with HR criteria, such as a country, to decide which employees it covers.
Where several retention policies cover one document type, the longest retention period applies.
Default retention policies catch anything without a specific policy. For each Center of Excellence table, the base system default keeps documents indefinitely and does not purge them. Changing a default applies to new documents, while existing documents keep the period they were given. Once a purge date is calculated and a legal hold is placed, that date stops changing.
Security policies, roles and employee access
Security policies decide who can read, write and approve purges of documents. Each policy has read, write and authorize-purge tabs. The read and write tabs accept groups, roles or both, while the authorize-purge tab accepts groups only. Ticking the match-all option requires a user to satisfy both the group and the role conditions. Policies are evaluated in order of their number, lower numbers first, and can be switched off without being deleted.
| Role | What it allows |
|---|---|
| sn_hr_ef.admin | Full control, including policy tables, properties and bulk import setup |
| sn_hr_ef.manager | Manages document types and policies; reads and writes documents |
| sn_hr_ef.document_reader | Searches and reads documents; must also be added to a security policy’s read tab |
| sn_hr_ef.document_writer | Creates and updates documents; must also be added to a security policy’s write tab |
| sn_hr_ef.legal_hold_writer | Manages legal holds on HR profiles alongside the HR profile writer role |
| sn_hr_ef.document_import | Works with the bulk import staging table and its process flow |
Reader and writer roles also have to be added to the read or write tab of a security policy, as the role table above describes. Broader role design for HR records is covered in the HR case management security and access design guide.
Employee access is a setting on the document type. When ticked, employees see their own documents on their HR profile, and can open them in the Service Portal or Employee Center.
Expiration notices for documents with end dates
Passports and training certificates carry expiry dates. An expiration notification policy on a document type filters documents by HR criteria or field conditions, then emails recipients a set offset before or after expiry. Groups on the policy receive the same notices at the same time as individual recipients. When a document matches two policies, the lower order number takes priority.
Creating documents and moving case attachments
Writers complete the form with the employee, document type, payroll country and effective date; the HR case number is recorded when a document comes from a case. The effective date is when the document becomes valid, which can differ from the creation date. Uploads are capped at 30 megabytes by default.
Attachments on an HR case move from the case form. Open the case, choose Move Attachments in the form header, tick the files, set a document type for each and select Move Selected. The file name, format and size carry across. HR services can also move attachments automatically when a case closes, as described in the HR case lifecycle guide. Because the case list cannot show which cases hold attachments, search by case number instead. Spaces or underscores in file names give better search results than dashes.
Legal holds and purging
A legal hold stops the built-in clean-up from purging documents. It can be placed on one HR profile, several profiles from the list view, a document type, or several document types at once. Each hold records a reason and comments, and can be removed later from the legal holds list. A document type hold covers all documents of that type and suspends the retention policies that would otherwise apply.
The hold applies to the built-in cleanup. Custom table cleaners and table archival rules sit outside it, so custom housekeeping needs its own control.
Purging deletes the documents. The security policy decides who must authorize a purge, and each document shows a status: pending authorization, approved or rejected. A daily job emails the authorizing group a purge notification, sent a set number of days before the next month, which defaults to seven.
To spread the work, purge dates are recalculated in batches. Each user record receives a stride value within a range set by the sn_hr_ef.purge_stride_length property, which defaults to 30. On each run, users whose stride matches the current day have their purge dates recalculated, skipping documents under a legal hold or purge hold. A larger range spreads the recalculation across more days, since a range of 1 recalculates every document daily. When purge logging is enabled (the default), each purge run creates a log of the deleted documents, which can be downloaded as CSV.
Bulk importing documents from existing repositories
Bulk import copies documents from an existing store into the application. From the Zurich release, the feature is being prepared for deprecation. Existing customers can keep using it as it is, with no new functionality, and new customers do not get access, so confirm its position before planning a migration around it.
A local directory is reached through a MID Server using SSH credentials. The MID Server can run on Windows or Linux, but the server holding the files must not be Windows, because the default expects a UNIX file server. Other setups need custom development. A cloud repository is treated as a custom implementation. It needs a source URL and a credential alias. URL sources take the root directory, so each directory needs its own configuration.
The import runs in six stages:
- Create the import configuration with a name, source type, host or URL, directory, staging state and credential alias. Turn on log mapping while testing.
- Build the import map, linking each source element to a mapped element: docType, fileName or employee.
- Run the Verify step to confirm the connection and that the source files are located.
- Run the staging job, which writes one staging record per file.
- Correct records in the staging table, using Validate, then Complete, then Ready for import.
- Run the Capture step, which copies each file and creates the document.
Only staging records in the Ready state are processed when the Capture job runs, so review the staging table before you start it.
The employee name must be formatted as first.last. When file names carry the data, a regular expression can split the name, with one part becoming the employee and another the document type.
Frequently asked questions
Who can activate the plugin?
An account with the admin role can activate it from the list of available applications, which also installs demo data and related plugins.
Can employees see their own documents?
Yes, when the document type has its employee access setting ticked. Their files then appear on their HR profile and in the employee portal.
What happens to a document on legal hold?
Its retention policies are suspended and the built-in purge cannot delete it. Custom cleanup jobs and archival rules are not covered, so they need separate review.
How large can an uploaded file be?
By default, 30 megabytes. Administrators can raise the limit, though a larger limit can slow the system.
If retention and access decisions are still open for your HR Service Delivery design, the HR Service Delivery implementation page is the next step.