What is the syntax to create service user in AEMaaCS using netcentric script?
Solved! Go to Solution.
Views
Replies
Total Likes
Please have a look at https://techrevel.blog/2021/01/31/deploying-netcentric-accesscontroltool-with-aem-project-archetype-...
Hi @goyalkritika,
Syntax is the same like for a normal user. You only have to add isSystemUser property in your script to indicate that particular user is system user, here is link to documentation:
And simple example:
- user_config:
- sample-service-user:
- path: /home/users/system
isMemberOf: administrators
isSystemUser: true
Above code will create system user named sample-system-user, and assign it to administrators group.
Okay. And the service user will be having permissions just like administrators group, right? What if I don't want to assign the service user to any group and want to assign specific permissions to it?
Hello @goyalkritika
You can assign permissions to Service user just like a normal user.
Only for creating it, you need to add additional param
I added the script and deployed it to my dev instance. But no user got created under the specified path.
What am I doing wrong here? Why service user was not created under /home/users/system?
Hello @goyalkritika
Requesting you to please check following:
All of this looks fine. I'm thinking this issue has something to do with AC tool configuration in cloud instance. Are you aware of any documentation or article that explains the same?
Please have a look at https://techrevel.blog/2021/01/31/deploying-netcentric-accesscontroltool-with-aem-project-archetype-...
@goyalkritika Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes