Fix: Access issue while Importing Sitecore JSS Application

If you run the Sitecore JSS command "jss deploy app -c -d" in Command Prompt and you are getting an error, same as the image or the text shows below.



IMPORT ERROR(S) OCCURRED:
Exception thrown while importing JSS app
Exception: Sitecore.UnauthorizedAccessException
Message: The current user does not have write access to this item. User: sitecore\JSSImport


Then it is due to the security access issue with Sitecore. With Sitecore 10.2 you will not get complete access to the Sitecore Content tree for the "sitecore\JssImport" user.


User "sitecore\JssImport" is unable to create an item under the "sitecore/Content" item in the Sitecore Content tree.



To fix this problem you just have to grant access to the user with the name "sitecore\JssImport" to "sitecore\Content" and its descendant in the Sitecore Content tree.



Now, when you again run the same command "jss deploy app -c -d" in Command Prompt. This time the error will be resolved.



References



Happy Coding, Coders for Life
Chirag Goel

I am a developer, likes to work on different future technologies.

Post a Comment (0)
Previous Post Next Post