Unable to Add User

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

Unable to Add User

Hi all,

I'm tring to add a memeber to site from share alfresco 6.1 community and i'm getting the folowwing error:

 

alf6-acs_1 | 2020-02-24 15:17:18,816 ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-5] Exception from executeScript: 01240003 org.alfresco.repo.security.permissions.AccessDeniedException: 01240057 Access Denied. You do not have the appropriate permissions to perform this operation.Unexpected error occurred during starting invitation
alf6-acs_1 | org.springframework.extensions.webscripts.WebScriptException: 01240003 org.alfresco.repo.security.permissions.AccessDeniedException: 01240057 Access Denied. You do not have the appropriate permissions to perform this operation.Unexpected error occurred during starting invitation
alf6-acs_1 | at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1124)
alf6-acs_1 | at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
alf6-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
alf6-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
alf6-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
alf6-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
alf6-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)
alf6-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
alf6-acs_1 | at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
alf6-acs_1 | at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
alf6-acs_1 | at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
alf6-acs_1 | at org.alfresco.repo.web.scripts.AlfrescoWebScriptServlet.service(AlfrescoWebScriptServlet.java:43)
alf6-acs_1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
alf6-acs_1 | at jdk.internal.reflect.GeneratedMethodAccessor429.invoke(Unknown Source)
alf6-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alf6-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:225)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:149)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alf6-acs_1 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
alf6-acs_1 | at jdk.internal.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
alf6-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alf6-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:149)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alf6-acs_1 | at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
alf6-acs_1 | at jdk.internal.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
alf6-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alf6-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:149)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alf6-acs_1 | at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
alf6-acs_1 | at jdk.internal.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
alf6-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alf6-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:149)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alf6-acs_1 | at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
alf6-acs_1 | at jdk.internal.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
alf6-acs_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
alf6-acs_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:550)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
alf6-acs_1 | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:191)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:47)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:149)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
alf6-acs_1 | at java.base/java.security.AccessController.doPrivileged(Native Method)
alf6-acs_1 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
alf6-acs_1 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
alf6-acs_1 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
alf6-acs_1 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
alf6-acs_1 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
alf6-acs_1 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
alf6-acs_1 | at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
alf6-acs_1 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
alf6-acs_1 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
alf6-acs_1 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
alf6-acs_1 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
alf6-acs_1 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
alf6-acs_1 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
alf6-acs_1 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
alf6-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
alf6-acs_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
alf6-acs_1 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
alf6-acs_1 | at java.base/java.lang.Thread.run(Thread.java:834)
alf6-acs_1 | Caused by: org.mozilla.javascript.JavaScriptException: JavaException: org.alfresco.repo.security.permissions.AccessDeniedException: 01240057 Access Denied. You do not have the appropriate permissions to perform this operation.Unexpected error occurred during starting invitation (classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js#128)
alf6-acs_1 | at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_site_invitation_invitation_post_json_js_37._c_main_1(classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js:128)

 

 

Ps: the user i'm using to add the member is manager of the site.

 

2 Replies
abhinavmishra14
Advanced

Re: Unable to Add User

The error clearly says "org.alfresco.repo.security.permissions.AccessDeniedException: 01240057 Access Denied. You do not have the appropriate permissions to perform this operation".

Can you check if you have appropriate permissions in the site to add a user ? Only site manager can add user to the site. 

 

Refer this doc for more details; https://docs.alfresco.com/5.2/references/permissions_share_other.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
mouadh
Member II

Re: Unable to Add User

I'm already manager and creator  of the site :

manager.png