---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Plugin

# Managed Documents plugin {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Managed Documents plugin

The Managed Documents plugin in ServiceNow provides a structured framework to manage documents, their revisions, approval processes, and security.
It introduces new database tables, scripts, and roles to support document creation, revision tracking, approval workflows, and controlled access based on permissions.
Show full answer Show less  

## Database Tables

The plugin adds several tables to organize and manage document-related data:

* **dmsdocument:** Stores document details.
* **dmsrevision:** Tracks document revisions.
* **dmsaudience:** Defines intended readers of the document.
* **classification:** Specifies document restriction levels (e.g., public, confidential), though access is controlled by user/group permissions.
* **dmstype:** Indicates the document's purpose.
* **dmscomponent:** Components used in naming formats, evaluated via dot-walking expressions.
* **dmsnameformat:** Defines how components combine to generate revision names.
* **approvalsequence:** Specifies the order of approval steps.
* **dmsapprovalrule:** Establishes criteria for auto-assigning approvers to documents.
* **dmscollection:** Allows users to group documents.

## Scripts and Business Logic

The plugin includes business rules and script includes to automate document state management and approval handling:

* **Business Rules:**
  * *Update Document:* Updates document states based on revision changes.
  * *Add Approvers:* Automatically populates approvers for a document.
* **Script Includes:** Provide core functionality for document management, database operations, security, AJAX updates, attachment renaming, workflow assistance, approval matching, and utility functions.
* **Client Script:** Updates revision name format dynamically when the document type changes, ensuring consistent naming conventions.

## Roles and Access Control

Two new roles support controlled access to the Managed Documents plugin:

* **documentmanagementuser:** Grants access to create, view, and search documents. Required for document reviewers and approvers.
* **documentmanagementadmin:** Grants permissions to modify administrative settings of the plugin.

Note that document permissions are enforced individually, so users only see documents they have explicit access to, even if they have the user role.

## Installation

The plugin can be activated by users with the admin role, enabling organizations to start managing documents with structured approvals and controlled access.  
This page describes the applications and modules, database table structure, scripts,
and roles.

## Database table structure

The following tables are added:  
{#r_ManagedDocumentsPlugin__table_ggy_5sn_vq__entry__2}

| Display Name (Table Name) | Description |
|-|-|
| Document \[dms_document\] | The document details. |
| Revision \[dms_revision\] | The document revisions. |
| Audience \[dms_audience\] | The intended document readers. |
| Classifications \[classification\] | The document restriction level, such as public or confidential. (Does not define access to the document. Document security is set in user and group permissions.) |
| Type \[dms_type\] | The document purpose. |
| Component \[dms_component\] | The components of name formats. The value field is a dot-walking expression that is evaluated. An exception is made for the revision because it does not exist when the revision name is generated. |
| Name format \[dms_name_format\] | The composition of components to generate revision names. |
| Approval sequence \[approval_sequence\] | The approval sequences that users must follow. |
| Approval Rule \[dms_approval_rule\] | The criteria that records of the dms_document table must match. Used to automatically add approvers to a document. |
| Collection \[dms_collection\] | The document groups created by the user. |
[Table 1. Tables]

{#r_ManagedDocumentsPlugin__table_ggy_5sn_vq}

## Scripts

{#r_ManagedDocumentsPlugin__table_cpx_2vn_vq__entry__2}

| Rule | Description |
|-|-|
| Update Document | Changes the state of a document depending on its revisions. |
| Add Approvers | Populates the list of approvers in the document. |
[Table 2. Business rules that are added to sys_script]

{#r_ManagedDocumentsPlugin__table_cpx_2vn_vq}  
{#r_ManagedDocumentsPlugin__table_rfx_kvn_vq__entry__2}

| Script include | Description |
|-|-|
| DocumentManagement | Contains the main logics for the Managed Documents plugin. |
| DocumentManagementDB | Contains methods to perform CRUD operations on the database. |
| DocumentManagementSecurity | Helps manage the security of the Managed Documents system. |
| DocumentManagementAjax | Updates the details of the temporary revision that is created when opening the upload/check in revision form. |
| DocumentAttachmentAjax | Renames an attachment file. |
| DocumentRevisionWorkflowHelper | Helps perform basic workflow operations on a revision. |
| DocumentManagementApprovalMatcher | Helps obtain the user and group approvers for a document that matches approval rules. |
| DocumentApproverHelper | Contains logics to handle document approvers. |
| DocumentManagementUtils | Useful methods. |
| DocumentReferenceQualifiers | Static methods that return reference qualifiers. |
[Table 3. Script includes that will be added to sys_script_include]

{#r_ManagedDocumentsPlugin__table_rfx_kvn_vq}  
{#r_ManagedDocumentsPlugin__table_njd_swn_vq__entry__2}

| Rule | Description |
|-|-|
| Document type change | Updates the name format field in the revision settings section of the document. Each type has a default name format. |
[Table 4. Client script that is added to sys_script_client]

{#r_ManagedDocumentsPlugin__table_njd_swn_vq}

## Roles

This plugin introduces two new roles:  
{#r_ManagedDocumentsPlugin__table_jnt_fxn_vq__entry__2}

| Role | Description |
|-|-|
| document_management_user | This role enables a user to access the Managed Documents plugin, create documents, and search for documents. Document reviewers and approvers need the document_management_user role to access the Managed Document plugin. (Please note that reviewers and approvers can also access a document revision from an approval record.) |
| document_management_admin | This role enables a user to change administrative settings for the Managed Documents plugin. |
[Table 5. Roles]

{#r_ManagedDocumentsPlugin__table_jnt_fxn_vq}  
Note:  
Each document has individual permissions, so even if a user is given the document_management_user role and has permissions to the application, the user can only view documents to which they have been given access.
* **[Install the Managed Documents plugin](https://servicenow-prod.fluidtopics.net/GHE_cgcvzFBaio5lkQEWCg)**   
  The Managed Documents plugin is available for activation by users with the admin role.

