Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Deleting references of a component from pages that are using the component using Servlet

Avatar

Community Advisor

I am trying to delete the references of a component from pages where the component is being used using a Servlet. I have registered the servlet to a path. But when I hit the path I am getting a 405. In Error logs I am getting, "writeuser is not a known JCR system user id and therefore not allowed in Sling user mapper service.". Can someone help me with a code snippet that I can refer for the same.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

I believe writeuser is the system user and you are making post request that's why you are getting 405 in browser. 

 

Go to configurations in felix http://servername:port/system/console/configMgr

Search for "user mapper service " or writeuser

you will see an entry like mentioned below

 

DEBAL_DAS_0-1648537527097.png

 

if it is not there then add one.

Please search for writeuser in http://aemhost:port/security/users.html like mentioned below -

 

DEBAL_DAS_1-1648537662076.png

 

if it is not there then create system user named: writeuser and add requisite permission to writeuser .

Hope this will help.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

I believe writeuser is the system user and you are making post request that's why you are getting 405 in browser. 

 

Go to configurations in felix http://servername:port/system/console/configMgr

Search for "user mapper service " or writeuser

you will see an entry like mentioned below

 

DEBAL_DAS_0-1648537527097.png

 

if it is not there then add one.

Please search for writeuser in http://aemhost:port/security/users.html like mentioned below -

 

DEBAL_DAS_1-1648537662076.png

 

if it is not there then create system user named: writeuser and add requisite permission to writeuser .

Hope this will help.