Create service user using netcentric script | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

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?


@goyalkritika 

 

Please have a look at  https://techrevel.blog/2021/01/31/deploying-netcentric-accesscontroltool-with-aem-project-archetype-24/

2 replies

lukasz-m
Community Advisor
Community Advisor
September 29, 2023

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.

Level 4
September 29, 2023

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?

aanchal-sikka
Community Advisor
Community Advisor
September 29, 2023

Hello @goyalkritika 

 

You can assign permissions to Service user just like a normal user.

Only for creating it, you need to add additional param

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
October 4, 2023

@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.

Kautuk Sahni