AEM Tutorial #57 | Repository Initialization | Create system user, groups and users using repoinit

Published: 29 September 2021
on channel: AEM GEEKS
8,835
96

What is Repository Initialization or apache sling repoinit in aem. You can create system user , service user, user groups and users using repoinit. you can add permissions to user groups and users and also users can be added to groups using repoinit. apache sling repoinit is very useful feature available from AEM 6.5.5 to manage system users, groups and users.

Repoinit language examples.

1. --------------Create System/service user and add permissions----------
create service user aemgeeks-service-user with path /home/users/system/geeks/aemgeeks-service-user

set ACL for aemgeeks-service-user
allow jcr:read,rep:write on /content/aemgeeks
allow jcr:read on /conf/aemgeeks
allow jcr:read on /apps
end

2. --------------Create user group and add permissions----------
create group geeks-users with path /home/groups/geeks-users
set ACL for geeks-users

allow jcr:read,rep:write on /content/aemgeeks
allow jcr:read,rep:write on /conf/aemgeeks
allow jcr:read,rep:write on /apps/aemgeeks
allow jcr:read,rep:write on /home
allow jcr:read on /
end

3. --------------Create user and add user to user group----------
create user geeks-admin with path /home/users/geeks/geeks-admin with password 12345

add geeks-admin to group geeks-users

4. --------------Create Page(any node) and add properties----------
create path /content/aemgeeks/ca(cq:Page)/jcr:content(cq:PageContent)
set properties on /content/aemgeeks/ca/jcr:content
set sling:ResourceType{String} to aemgeeks/components/structure/geeks-content
set cq:template{String} to /apps/aemgeeks/templates/geeks-content
set jcr:title{String} to Canada
end

Official documentation : https://sling.apache.org/documentatio...


On this page of the site you can watch the video online AEM Tutorial #57 | Repository Initialization | Create system user, groups and users using repoinit with a duration of hours minute second in good quality, which was uploaded by the user AEM GEEKS 29 September 2021, share the link with friends and acquaintances, this video has already been watched 8,835 times on youtube and it was liked by 96 viewers. Enjoy your viewing!