Document upload to hr case that only himself and admin can see

Elvis7
Tera Contributor

I have a requirement that create a HR case for users can upload documents that more than once.

The users only can see their own uploaded documents not others. Admin can see all documents.

How can I do that?

 

Thanks

7 REPLIES 7

Sandeep Rajput
Tera Patron
Tera Patron

@Elvis7 You need to create an ACL with following configuration.

 

Screenshot 2023-11-07 at 1.51.18 PM.png

Hope this helps.

@Sandeep Rajput 

  Hi Sandeep, 

      I tried the same thing, but the type of Created By in attachment table is String. So there is no data match to the condition. I updated to javascript:gs.getUserName(). It shows match now.

When I impersonate as another person. He still can see my uploaded attachment in HR workspace.

Do you have any idea?

Elvis7_0-1699367170962.pngElvis7_1-1699367222965.png

Thanks

@Elvis7 My bad, could you please filter condition as  Created by is javascript: gs.getUserName();

@Sandeep Rajput Yes, I updated to getUserName. It shows matched data now. 

However, it didn't hide the attachment for others.

Elvis7_0-1699368635460.png