Skip to main content
Question

Detach Document Permission

  • November 6, 2025
  • 1 reply
  • 39 views

Forum|alt.badge.img+6

Hello,

We would like to allow some users to detach document.

When adding DocReferenceObjectAttachmentHandling to their permission list, nothing is happening.

DocReferenceObjectAttachmentHandling is well 

 

 

 

 

Any idea please?

 

thank you in advance

1 reply

Forum|alt.badge.img+12
  • Hero (Customer)
  • November 8, 2025

That document is in Manual Supplier Invoice, which has an automatic Object Type for Access Control setup (Out of the Box)

 

This is what allows everyone with access to the invoice to also access any documents connected and attached to it, no matter which document class etc.

 

This is created as an Access Rule in the Document Revision “Access” tab, which will indicate to you that there is an Object Connection access granted.

 

When you try to detach the document, it would immediately try to delete that “Access” line as the document should no longer be viewable by people who were getting access through being able to access that Manual Supplier Invoice

 

When it attempts to delete that Access line, a check is done to see if you are the owner of the document

 

 

That “Is_User_Access_Owner” method resolves around multiple checks to see who’s trying to delete that Access Row.

It will return TRUE (and therefore allow the deletion, if and only if the user attempting to detach the document:

  • Is the user Responsible for the Document (i.e. User who uploaded/created the document)

    or
     
  • is granted DOCMAN ADMINISTRATOR System Privileges (through Permission Sets)

    or
     
  • is present in the Access Tab with “Admin” privileges to the document

    or
     
  • is a Member of a Person Group present in the Access Tab with “Admin” privileges to the document

    or
     
  • if Person ID “*” is present as an Admin in the Access tab (means everyone is Admin)

    or
     
  • If Object Access Level for ManSuppInvoice is set to Admin (means everyone with access to Invoices is an admin of all documents connected to the invoices)
     

 

None of these checks are estimated to be met by IFS for the user who’s trying to detach that document, hence it is failing and returning the error message.

 

Hope that helps ! :)