<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: System user package issue in Adobe Experience Manager Discussions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450875#M32975</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17519431"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looking at the error, the issue looks like to be with the migrated system user you have created. The configurations that you have created looks good and that is correct.&lt;/P&gt;&lt;P&gt;How are you migrating the system user and the ACL's of the system user to AEM as cloud service? The recommended way to do so is explained here.&amp;nbsp;&lt;A href="https://bimmisoi.blogspot.com/2021/08/create-system-user-using-repository.html" target="_blank"&gt;https://bimmisoi.blogspot.com/2021/08/create-system-user-using-repository.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 14:18:36 GMT</pubDate>
    <dc:creator>anish-s</dc:creator>
    <dc:date>2022-05-05T14:18:36Z</dc:date>
    <item>
      <title>System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450828#M32974</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Env: AEM as a cloud service&lt;/P&gt;&lt;P&gt;1. Have created a system user from crx/explorer and provided the permissions on tools-&amp;gt;security-&amp;gt;permissions. Have verified the user permissions for the same on useradmin&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Configured SU on system/console/configMgr. The file was generated under apps/system/config. Copied this file to /apps/../osgiconfig/config.(can see the same on system configmgr).&lt;/P&gt;&lt;P&gt;3. After this deleted the existing file.&lt;/P&gt;&lt;P&gt;4. Now everything seems good. But while hitting my listener I'm getting the below error.&lt;/P&gt;&lt;P&gt;org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.test.core [572] and sub service bs-final-test&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;&amp;nbsp;Have done all the above steps to create a package and install it in higher environments.&lt;/P&gt;&lt;P&gt;Could someone please help me to resolve it?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 10:59:00 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450828#M32974</guid>
      <dc:creator>Lakshmi9</dc:creator>
      <dc:date>2022-05-05T10:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450875#M32975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17519431"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looking at the error, the issue looks like to be with the migrated system user you have created. The configurations that you have created looks good and that is correct.&lt;/P&gt;&lt;P&gt;How are you migrating the system user and the ACL's of the system user to AEM as cloud service? The recommended way to do so is explained here.&amp;nbsp;&lt;A href="https://bimmisoi.blogspot.com/2021/08/create-system-user-using-repository.html" target="_blank"&gt;https://bimmisoi.blogspot.com/2021/08/create-system-user-using-repository.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 14:18:36 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450875#M32975</guid>
      <dc:creator>anish-s</dc:creator>
      <dc:date>2022-05-05T14:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450904#M32976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Seems user is missing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cannot derive user name for bundle com.test.core [572] and sub service bs-final-test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create system user with correct permission during repository initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Configuration file example:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/apps/my-app/config/org.apache.sling.jcr.repoinit.RepositoryInitializer-init.config&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;scripts=["
    create service user my-data-reader-service
 
    set ACL on /var/my-data
        allow jcr:read for my-data-reader-service
    end
"]&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:22:00 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450904#M32976</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-05T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450912#M32977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="15800109"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;Here are the steps that I have tried with the above approach.&lt;/P&gt;&lt;P&gt;1. Added script at&amp;nbsp;&lt;STRONG&gt;Apache Sling Repository Initializer Factory &lt;/STRONG&gt;as below.&lt;/P&gt;&lt;P&gt;create service user project-service-user&lt;BR /&gt;set ACL on /&lt;BR /&gt;allow jcr:all for project-service-user&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;After saved it, service user was created under this path /home/users/system &amp;amp; also config file under&amp;nbsp;/apps/system/config.&lt;/P&gt;&lt;P&gt;2. As per my requirement, have copied the config file inside&amp;nbsp;/apps/project/osgiconfig/config &amp;amp; it looks as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_0-1651774307500.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40740i2F8AA416B90EDD7A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_0-1651774307500.png" alt="Lakshmi9_0-1651774307500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Now created a package for this&amp;nbsp;&lt;/P&gt;&lt;P&gt;/apps/baem/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer.project.cfg.json&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after all done, added the same file in the below path(codebase) &amp;amp; given a build.&amp;nbsp;&lt;/P&gt;&lt;P&gt;\ui.config\src\main\content\jcr_root\apps\project\osgiconfig\config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can see the above file in the same path but service user was not created inside /home &amp;amp; couldn't find the repoInit config in system/console/configMgr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly provide your inputs to get it done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 18:21:29 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450912#M32977</guid>
      <dc:creator>Lakshmi9</dc:creator>
      <dc:date>2022-05-05T18:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450955#M32978</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think there is an error in your cfg.json file,&lt;/P&gt;&lt;P&gt;the "scripts" part should be without "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;"scripts"&lt;/STRONG&gt;=["
    create service user my-data-reader-service
 
    set ACL on /var/my-data
        allow jcr:read for my-data-reader-service
    end
"]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can check example here&lt;/P&gt;&lt;P&gt;&lt;A href="https://drewrobinson.com/blog/aem-repository-initialization-with-repoinit" target="_blank"&gt;https://drewrobinson.com/blog/aem-repository-initialization-with-repoinit&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 07:42:26 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450955#M32978</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-06T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450975#M32979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;the above solution was working. Service user created &amp;amp; verified permissions too. But getting the same error again after the build.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_3-1651827890016.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40751i8C20CF5EADDF3C16/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_3-1651827890016.png" alt="Lakshmi9_3-1651827890016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_1-1651827789861.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40749i9903C8F245A06D37/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_1-1651827789861.png" alt="Lakshmi9_1-1651827789861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_2-1651827837151.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40750iAA6856ACC56D098F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_2-1651827837151.png" alt="Lakshmi9_2-1651827837151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;listener code snippet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_0-1651827605701.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40748i9E6FB383238802DE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_0-1651827605701.png" alt="Lakshmi9_0-1651827605701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;06.05.2022 14:19:12.849 *ERROR* [OsgiInstallerImpl] com.project.core.listeners.Listener Cannot derive user name for bundle com.project.core [572] and sub service test-auth-serviceuser&lt;BR /&gt;org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.project.core [572] and sub service test-auth-serviceuser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly help, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 09:05:09 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450975#M32979</guid>
      <dc:creator>Lakshmi9</dc:creator>
      <dc:date>2022-05-06T09:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450995#M32980</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems the servicename is wrong in your code, you used username for mapping service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you check&amp;nbsp;&lt;STRONG&gt;org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-&amp;lt;unique-name-for- -your-factory&amp;gt;.cfg.json &lt;/STRONG&gt;configuration&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;service.ranking="0"
      user.mapping="[com.project.core:test-auth-service=test-auth-serviceuser"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 12:53:53 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/450995#M32980</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-06T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451007#M32981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I missed to add the mapper for the newly created user &amp;amp; added it now as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_0-1651844585800.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40756iB0CB75D44523B564/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_0-1651844585800.png" alt="Lakshmi9_0-1651844585800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lakshmi9_1-1651844840471.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40757i16D1CE78F29AF6ED/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Lakshmi9_1-1651844840471.png" alt="Lakshmi9_1-1651844840471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again placed, the&amp;nbsp;org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended.169bd574-d7ab-46a3-bcc9-629c584192ac.cfg.json file inside /apps/..../osgiconfig/config and given a build. But still no luck Arun. Getting the same LoginException.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 13:48:05 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451007#M32981</guid>
      <dc:creator>Lakshmi9</dc:creator>
      <dc:date>2022-05-06T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451009#M32982</link>
      <description>&lt;P&gt;verified service user, config files &amp;amp; permissions after the build. All looks good. But same error again &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@8C4884DA41FA1DA5149A00A8F585667D/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 13:50:48 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451009#M32982</guid>
      <dc:creator>Lakshmi9</dc:creator>
      <dc:date>2022-05-06T13:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: System user package issue</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451016#M32983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;did you tried this in local?&lt;/P&gt;&lt;P&gt;you can do it with manually in locally and debug to see , what is the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue would be due to one of the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. systemuser is missing&lt;/P&gt;&lt;P&gt;2. service and service user mapping is misising/wrong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 14:22:20 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/system-user-package-issue/m-p/451016#M32983</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-06T14:22:20Z</dc:date>
    </item>
  </channel>
</rss>

