Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Mandating "Read Only" for All Attachments in Workspace


Level 4

Given that you can toggle the presence of the attachments window in Workspace from within an Assign Task service's properties, is there a good way to specify that ALL attachments are to be "read only"? Currently, when you add an attachment within Workspace, it allows the user to drop down and select from a list of permissions for that attachment.

What I'm looking for is a good way to ensure that once a user uploads an attachment within Workspace, then it is "read only".

1 Reply


Not applicable
I think you will have to write some custom code for that

let me know if you need any help

I will be more than happy to help you out




Not applicable

Hi Girish,

I would like to know what needs to be done (coding or even otherwise) required to make the attachments readonly and also not allow workspace users to be able to delete or add new attachments.



Level 2


In the workflow you have to loop through the attachmentList from the Assign Task operation and set the permission in the document attribute before the next assign task operation.

setDocAttribute(/process_data/attachmentVar[1],"wspermission", "1")


A bit mask number that represents the access permissions for the document.

Access permissions determine how the document can be used when it is attached to a task. The value of the number is the sum of the number that represents each access permission provided for the document.

Read access: 1

Write access: 2

Delete access: 4

Valid values are 1, 3, 5, and 7. For example, the value of wspermission for a document with read and write access is 3.

7 (Read, write, and delete access)

For reference check the link:




Level 2


Please mark the discussion as "Answered".