Sitecore Serialization CLI sync is failing due to permission issue

After Successful working setup of the Sitecore content serialization using CLI, Sometimes you may encounter with the below error especially during the ser pull/push commands but still the authentication will be successful. 

The error is shown below.  


Error Message

You are not authorized to perform the task you are attempting. You may need to be assigned additional permissions.

Possible Solution fix:
  • Usually the authentication urls for both ID and CMS (in case of docker, it may be indexing or CM url based on setup) and along with user login information will be stored in user.json file. First we need to cross verify whether those values are correct or not.
  • Some times you may need to install the Sitecore.ManagementServices package and you can refer here and go to the section "Sitecore Management Services".
  • Due to any reason, the variable "identityServerAuthority" might have incorrect value. you can check this setting located in the  'App_Config\Sitecore\Owin.Authentication.IdentityServer\Sitecore.Owin.Authentication.IdentityServer.config' and also you check this under 'Siteurl//sitecore/admin/showconfig.aspx' as well. Update the value if it is incorrect.

Hope this will help in fixing the issue.

Happy Serialization with Sitecore 😀😀

Comments