| [<img src="https://sling.apache.org/res/logos/sling.png"/>](https://sling.apache.org) |
| |
| [](https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-jcr-presence/job/master/) [](https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-jcr-presence/job/master/test/?width=800&height=600) [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-jcr-presence) [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-jcr-presence) [](https://www.apache.org/licenses/LICENSE-2.0) [](https://github.com/apache/sling-aggregator/blob/master/docs/groups/jcr.md) |
| |
| # Apache Sling JCR Presence |
| |
| This module is part of the [Apache Sling](https://sling.apache.org) project. |
| |
| ## User Presenter |
| |
| If an OSGi component depends on a service (system) user, the user presenter can be used to announce the presence of the user as OSGi service. |
| |
| The OSGi component can reference the service which represents the user, e.g. |
| |
| @Reference( |
| target = "(&(userId=sling-readall)(disabled=false)(systemUser=true))" |
| ) |
| private UserPresenter userPresenter |