Deleting references of a component from pages that are using the component using Servlet | Community
Skip to main content
ksh_ingole7
Community Advisor
Community Advisor
March 29, 2022
Solved

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

  • March 29, 2022
  • 1 reply
  • 959 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DEBAL_DAS

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

 

 

if it is not there then add one.

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

 

 

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

Hope this will help.

1 reply

DEBAL_DAS
DEBAL_DASAccepted solution
New Member
March 29, 2022

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

 

 

if it is not there then add one.

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

 

 

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

Hope this will help.

Debal Das, Senior AEM Consultant