< class="prominent-subhead ">

Code Fix: An error occurs when deploying a package with multiple SharePoint sites when the user does not have rights to one of the sites

This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue Description

When the method “Get Sites” queries all SharePoint sites in the site collection and a user does not have access to some of those sites, a 401 error is presented when attempting to deploy a package via K2 Package and Deployment.

Error Message

The following error occurs: “401 unauthorized”.


  1. Ensure you have K2 Five RTM installed.
  2. Get the K2 Five RTM FP13 from Regional Support.
  3. Install the K2 Five RTM FP13 to apply the fix.