Below is the sample code to create user:
Map<String, Object> param = new HashMap<String, Object>();param.put(ResourceResolverFactory.SUBSERVICE, "service-userid");ResourceResolver resolver = resourceFact.getServiceResourceResolver(param);org.apache.jackrabbit.api.security.user.UserManager userManage...