cancel
Showing results for 
Search instead for 
Did you mean: 

webscript that takes a noderef and a user, should grant read permission to the user on the file.

polojuvinod
Champ in-the-making
Champ in-the-making

Hi,

Could you help me with below webscript or provide any sample code if you have it. i'm just getting started with alfresco.

Thanks,

Vin

1 REPLY 1

kalpesh_c2
Star Collaborator
Star Collaborator

Hi, Vin P
You can pass parameters to data webscripts refer this document to create webscript and fetch parameters Web Scripts and after getting your noderef and username check whether it is exists or not and set permission.
To set permission refer setPermission | Alfresco Documentation .

Thanks,
Kalpesh 
ContCentric