Skip to main content

How to implement document security

Written by Denisa Arjoca
Updated over a week ago

Security is applied to individual documents using document group security.

How document security works

A document can belong a document group.

Each user can be granted access to one or more document groups, and will be able to view documents that belong to those groups.

The paperclip button and the document browse respond to document group security.

  1. If there are documents attached to a record, the paperclip button turns orange if the user has access under document group security to at least one of the documents.

  2. If the user clicks the paperclip button, a document browse opens. The document browse will only list documents that belong to document groups that the user has permission to access.

If a document is attached to a record (for example, a purchase order or a supplier) the user must have access both to the record (determined by company security and contract security), and to the document (determined by document group security). If the user tries to view a document, but does not have permission, a message is displayed to inform them why they cannot view it.

When you move the mouse pointer over a document link, a thumbnail of the document appears. When you move the mouse pointer over the paperclip button, a thumbnail of the most recent document appears. If the user does not have access to view the document, the thumbnail currently shows an “image not available” icon.

Example of document security

In Document Group Security, user DONBAR has access to the group “001 - invoices” but not to the group “002 - payments”.

In Contract Security, the user does not have access to contract v7n.

The invoice record with internal reference 10060001 is costed to contract v7n, and has two documents attached – an invoice (belonging to document group “invoices”) and a payment (belonging to document group “payments”).

When user DONBAR runs the invoice enquiry, he can see the invoice record, and the orange paperclip button shows that there are documents attached. Because the most recent document is in the payments group (to which the user does not have access), the thumbnail shows an “image not available” icon.

When the user clicks the paperclip, although there are two documents attached to the record, the document browse only lists the invoice, because the user does not have access to the payments document group.

However, when the user tries to view the document, because he does not have access to the contract, he does not have permission to view it, and an error message is displayed.

To set up document group security for an individual user

  1. Either:

    1. In Company 0, go to Document Group Security.

      By default, this displays a list of all current users.

    2. Open the record for the user whose access you want to update.

    or

    1. In User Workbench, click the link for the user whose access you want to update.

    2. From the Security tab menu, select Document Group Security.

  2. In the Code field, enter a can-do list of codes for the document groups the user is allowed to access. * means the user has access to all document groups; blank means the user has access to no document groups.

  3. Save the record.

To update document group security for multiple users

  1. In Company 0, go to Update User DM Group Security.

  2. Use the From, To and Matches fields to specify the users whose document group security you want to update.

  3. In the Code field, enter a can-do list of codes for the document groups the users are allowed to access. * means the users have access to all document groups; blank means the users have access to no document groups.

  4. Tick the Update User DM Group Security? box.

  5. Click Next and answer Yes to the confirmation message.

You can use Update User DM Group Security to produce a report showing users’ current document management security settings, by running it with Update User DM Group Security? unticked.

Access to documents with no document group

Some documents may not have been assigned to document groups. The DM parameter BLANKGRP controls whether users are able to view these documents.

If BLANKGRP is set to Y, users will not be able to see any documents that do not have a document group assigned. (Note that although users will not be able to view documents with no document group, they may still be able to see the document listed in enquiries, and may be able to change the document group to one they have access to, effectively giving them access to the document.)

If BLANKGRP is set to N (or blank), all users will be able to see any document that does not have a document group assigned.

For documents that do have a document group assigned, document group security applies.

Did this answer your question?