Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 5

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
Community 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
Community 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.