2

I am trying to install the Sitecore items package using the Sitecore CLI command line, I created a package using the same name as SitecoreCliProject.itempackage and now trying to install following this Link

I am trying yo install the package by using the command

sitecore ser pkg install -f sitecoreCliTest.itempackage --client-id <your client id> --client-secret <your client secret> --cm <your content management host> --auth <your identity host>

I can see below the error in PowerShell. And I am running PowerShell from Admin.

GraphQL.ExecutionError: Deserialization can only be performed by Sitecore Administrators.

enter image description here

Any idea?

2
  • Did you configure your Identity Server and Content Management roles for non-interactive client login? – Mahendra Shekhawat Sep 23 '20 at 16:02
  • Yes, I already did that – Gaurav Agarwal Sep 23 '20 at 16:08
2

This turnout issue of config changes was not applied properly, I created a config named - Sitecore.Owin.Authentication.ClientCredentialsMapping.config following https://doc.sitecore.com/developers/100/developer-tools/en/configure-a-non-interactive-client-login.html and changes were not showing in showconfig.aspx for this config, so I created the zzz folder under App_Config/Include folder and put this Sitecore.Owin.Authentication.ClientCredentialsMapping.config under this folder and checked showconfig.aspx, this time I saw my config changes and ran the below command

sitecore ser pkg install -f sitecoreCliTest.itempackage --client-id <your client id> --client-secret <your client secret> --cm <your content management host> --auth <your identity host>

It worked successfully.

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.