I created a folder in the companyHome, i can add some content from a java code only when the admin is authenticated.
I tried to give allUsers ADMINISTRATOR_AUTHORITY using PermissionService, but i get this error always when I run it.
Caused by: java.lang.UnsupportedOperationException: Can not find ROLE_ADMINISTRATOR
this is the line of code to give permissions I used .
permissionService.setPermission(folder, username, PermissionService.ADMINISTRATOR_AUTHORITY, true);
Any help ?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.