Trying to import the sample jss app into the Sitecore 9.1, but getting the below error any idea why is this is ?

Exception thrown while importing JSS app
Exception: Sitecore.Exceptions.AccessDeniedException
Message: AddFromTemplate - Add access required (destination: {GUID}, template: {GUID})
  • Ensure that you are running console (or any other tool which you are using) as an administrator. – Dawid Rutkowski Apr 15 '19 at 13:28
  • I think it's because you don't have add access – Mark Cassidy Apr 15 '19 at 13:50

This error occurs when the configured JSS import user (defaults to sitecore\JSSImport) is authenticated, but does not have the rights to add a template.

These rights are normally granted by the sitecore\JSS Import Service Users group membership but it sounds like the default ACLs assigned there may be missing in your case.

| improve this answer | |
  • Thanks Kam for inputs, for some reason after importing the 'Sitecore JavaScript Services Server for Sitecore 9.1 XP 11.0.0 rev. 181031.zip', the roles you mentioned (sitecore\JSSImport, sitecore\JSS Import Service Users) is missing in my instance. – Sivalingaamorthy Apr 15 '19 at 16:30

There appears to be a bug in the Sitecore WebDeploy package Sitecore JavaScript Services Server for Sitecore 9.1.1 XM 11.0.1 rev. 190318.scwdp

The SQL generates a role called sitecore\JssImport but does not create the user or assign it to the role.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.