Hi all,
I am trying to give permissions (READ/WRITE) to a given user on a file.
Here is the code :
Also, just after calling grantUser() method, if i call getGrantedUser(), the user i have just granted is not listed, and i can verifiy it in the admin interface.
Could someone help me using API please.
I am trying to give permissions (READ/WRITE) to a given user on a file.
Here is the code :
Code: Select all
The problem is that the code execute without error, but when the user tries to check out the file, he is not granted.
private OKMWebservices getAdminWebServiceFacade()
{
return OKMWebservicesFactory.newInstance("http://localhost:8080/OpenKM/", "okmAdmin", "admin");
}
...
getAdminWebServiceFacade().grantUser(doc.getPath(), userToGrant, 3, recursive);
Also, just after calling grantUser() method, if i call getGrantedUser(), the user i have just granted is not listed, and i can verifiy it in the admin interface.
Could someone help me using API please.