"You are not authorized to perform the task you are attempting. You may need to be assigned additional permissions" error when using CLI module


Description

Sitecore Command Line Interface (CLI) serialization commands might result in the following message after running:

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

Solution

To troubleshoot the issue, consider the following steps: