This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
I want to create users using RepositoryInitializer.
create path /home/users/testGroup(rep:AuthorizableFolder)
create user dummy with path /home/users/testUsers with password Test1234
Above command works as expected but I want to add email address and firstname and lastname prop(like below screenshot) in RepositoryInitializer script. Actually these props should be set at profile node like mentioned in below screenshot. I tried with "set properties xx" but it is not working. Any idea how to set prop on user creating command ?
Solved! Go to Solution.
Views
Replies
Total Likes
@Mario248 have you tried like the one below?
set properties on authorizable(bob), authorizable("Test Group")
set stringProp to "hello, you again!"
end
https://sling.apache.org/documentation/bundles/repository-initialization.html, please see example # test-71.txt in that doc.
@Mario248 have you tried like the one below?
set properties on authorizable(bob), authorizable("Test Group")
set stringProp to "hello, you again!"
end
https://sling.apache.org/documentation/bundles/repository-initialization.html, please see example # test-71.txt in that doc.
No, this is not for users. You provided a scripts for setting up props for group. But I am trying to add prop at user level.
Hi @Mario248
Below script can be used to create a user at specific path with a password and set properties.
create user userC with path /home/users/xyz with password userGpwd
set properties on authorizable(userC)/profile
set familyName{String} to familynamefromosgi
end
It will create a user named as 'userC' with password 'userGpwd' at path /home/users/xyz.
Second statement will set profile properties in AEM.
Views
Likes
Replies