Hi Nicolas, On Tue, 2017-05-16 at 19:18 +0000, Nicolas Peltier wrote: > Hey, > > I’d need for a JIRA (asynchronous execution of sling pipes) to create > a service user. > Not sure how I should bundle that. I see some stuff in the > launchpad’s repoinit scripts, but obviously that’s not a place for > extensions…
Service users, as you pointed out, are created via the repoinit provisioning model files. If you want to use a service user, just use loginService in your code and leave the service user mapping to the deployer. The slingshot sample shows a way in which you can include a provisioning model file with a bundle, but IMO this only suitable for samples and demos, as it cuts down on flexibility. Robert