Grant access to OSGi-console to other users
Posted by Feike Visser
I recently got the question how can you add other users to access the OSGi console, so that you don't need to use always the admin-account.
This is a valid question when you don't want to expose the admin-account/password to a lot of people.
Steps how to do it
Go to this configuration in the OSGi-console "Apache Sling Web Console Security Provider"

In this configuration you can add users or add groups that have access to the OSGi-console.
As explained in my previous post it is better to have configuration nodes than making changes manually.
when I follow these instructions (approach with creating configuration node), and try to log in to Felix console with 'testhc' user, I get the following error (error.log file):
GET /system/console/bundles HTTP/1.1] org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider authenticate: Expected user ID testhc to refer to a user
I have created 'testhc' user by using useradmin console.
Do you know what is wrong?