Hi @Nethmini Kosvinna , As far as I know, I assume we cannot restrict attaching option to specific set of document classes for a user. But, if you set a document class as a restricted access (either from Document Class Management> Document Default values> RESTRICTED_ACCESS value 'Y' or when creating doc revisions, ticking the checkbox), user should have at least view access to the document to see its general information. So, by setting this, when attaching documents to objects, in the document revisions list, users who do not have at least view access will not see those revisions with restricted access checkbox checked. To make sure the user does not get view access to documents created on a specific doc class, you can further set up this on Document Basic>Access template tab, enter the user ID and clear all three levels of access.
Hope this will be helpful.
Apart from Dilini’s good idea above, the only way I can think of is to use a custom event that would stop the record to be saved if a user connects a document. It should not be hard to do, and the basic data is already there to check against.
What is the underlying use case here?
@Dilini Arandara Thank you very much for your suggestion
@Mathias Dahl Use case here is customer want to restrict users from attaching documents that are created from the doc class that user is not using( not having access to create doc revisions). If they are using 2 different doc classes for two sites and when they are attaching a document in a site specific window (like PO) , they want to avoid users from attaching documents created to the other doc classes.