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

cancel
Showing results for 
Search instead for 
Did you mean: 
polojuvinod
Member II

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

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
kalpesh_c2
Senior Member

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

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