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
BedrockMission!

Learn More

View all

Sign in to view all badges

System user and content deployment in AEM as a Cloud Service

Avatar

Avatar
Validate 1
Level 6
Prince_Shivhare
Level 6

Likes

72 likes

Total Posts

365 posts

Correct Reply

57 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 1
Level 6
Prince_Shivhare
Level 6

Likes

72 likes

Total Posts

365 posts

Correct Reply

57 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 50
View profile
Prince_Shivhare
Level 6

28-04-2021

Hello Everyone,

 

I am currently working on an AEM as a cloud service.

 

Where we have adobe cloud git repo. and limited access to higher environments.

 

now we have a requirement to create system users in AEM and also content deployment.

 

But we don't have access to crx/explorer and  CRX package manager.

 

Can anyone please help me to know about this in detail?

I read this article -  https://sling.apache.org/documentation/bundles/repository-initialization.html
but not able to understand anything.

 

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile
asutosh_jena
Level 10

28-04-2021

Hi @Prince_Shivhare 

 

To create the system user you can leverage the Repo Init service i.e. create an OSGi config under the deafult run mode with the below name:

org.apache.sling.jcr.repoinit.RepositoryInitializer-projectname.config and add the following content to it. You can customize as needed and once the code is deployed the system user will be created and required permission will be set.

 

scripts=[
"
create service user demo-user
set ACL on /content/project
allow jcr:read for demo-user
end
"
]

 

Now coming to Content Deployment which can be done in both Cloud Manager as well as Package Manager. Please see the link below for more details:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/deploying/over...

 

Hope this helps!

Thanks

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

200 likes

Total Posts

264 posts

Correct Reply

64 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

200 likes

Total Posts

264 posts

Correct Reply

64 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

28-04-2021

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

377 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

28-04-2021

You need to create a cfg.json OSGI config for repo init to create system users and assign permissions. See docs below:

 

 

[1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem...