• how provide permissions to user

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #16882  by saileshkumard
 
how can i provide permissions to user to write or read or security or delete document or folder

i tried using below code but its not working plss help me
Code: Select all
public static void main(String[] args) {
		OKMAuthProxy authProxy = new OKMAuthProxy();
		authProxy.setEndpoint("http://localhost:8080/OpenKM/OKMAuth?wsdl");
		OKMFolderProxy folderProxy = new OKMFolderProxy();
		folderProxy.setEndpoint("http://localhost:8080/OpenKM/OKMFolder?wsdl");
		String path = "/okm:root/DOTNET/TestFolder6";
		try {
			String token = authProxy.login("okmAdmin", "admin");
			
			Folder newFolder = new Folder();
			newFolder.setPath(path);
			
			
			//folderProxy.create(token, newFolder);
			
			System.out.println("created");
			String strRoles[] = authProxy.getRoles(path);
			String strUsers[] = authProxy.getUsers(token);
			
			for (int i = 0; i < strUsers.length; i++) {
			authProxy.revokeUser(token, path, strUsers[i],1, false);
			authProxy.revokeUser(token, path, strUsers[i],2, false);
			authProxy.revokeUser(token, path, strUsers[i],4, false);
			}
			

 #16928  by jllort
 
Is exactly the same but using grantUser method there's no mistery on it. Put here your code ( only the part involved on it ) and we will take a look.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.