Expand my Community achievements bar.

SOLVED

how to create a group that replicate OOO Content-Author group using Apache Sling Repo Init script?

Avatar

Level 4

I have a use case, where i need to restrict non admin user(Content-Author) to delete/modify/move for certain site path using Repo Init script json.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

Hi,

you can set the permission with repo init script

https://sling.apache.org/documentation/bundles/repository-initialization.html

 

 



Arun Patidar

Avatar

Level 4

i already went through this https://sling.apache.org/documentation/bundles/repository-initialization.html. Still looking for some example implementation repo init script.

Avatar

Correct answer by
Community Advisor

Please check below for examples

https://www.nextrow.com/blog/adobe-experience-manager/getting-started-with-apache-sling-repo-init

https://drewrobinson.com/blog/aem-repository-initialization-with-repoinit

 

scripts=[
    "
    create group custom-group
    add authors to group administrators
    "
]


Arun Patidar

Avatar

Level 4

Thanks, I will look into this article.