30011 [username] is not a member of the Package and Deployment role and cannot create or deploy packages.

  • 24 February 2022
  • 0 replies
  • 128 views

Userlevel 5
Badge +20
 

30011 [username] is not a member of the Package and Deployment role and cannot create or deploy packages

kbt138131

PRODUCT
K2 blackpearl
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
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

When attempting to create a package, the following warning appears:

Image 

 

30011 [username] is not a member of the 'Package and Deployment' role and cannot create or deploy packages.

 

Symptoms

When attempting to create a package, the following warning appears:

30011 [username] is not a member of the 'Package and Deployment' role and cannot create or deploy packages.

 

 

This behavior is due to a new functionality introduced in the latest update; the Authorization Framework. This introduced the "Package and Deployment" role as per:

 

"Any person needing to package or deploy K2 solutions must be a member of this role."

Authorization Framework > 'Package and Deployment' role

 

When attempting to add self to 'Package and Deployment' role, it shows a warning message indicating:

 

Image

 

AAD:[username] cannot perform Modify on Package and Deployment.

Even though this account is a Server Admin.

 

 

To add users to the 'Package and Deployment' role, the account will need to be a part of the 'Security Administrators' role.

 

However, looking at the 'Security Administrators' role, only the 'K2Service' account is a member. This is a K2 account and is not accessible in K2 Appit/K2 Cloud.

 

Image

 

From the same documentation mentioned above:

 

"In a cloud environment, the Tenant Admin and K2 Service Account is added to the Security Administrators role when the registration wizard is run".

 

Troubleshooting Steps

Run the Registration Wizard as the tenant admin account, as this will grant the tenant admin account membership to the 'Security Administrators' role. This will allow this tenant admin account rights to grant other accounts membership to the 'Security Administrators' role and/or 'Package and Deployment'.

 

The Registration Wizard will usually reside within K2 App that is added to the Site Contents of the App Catalog site:

http://help.k2.com/onlinehelp/k2appit/UserGuide/1.5_Update6/default.htm#Provisioning/Provisioning_Wizard.htm?Highlight="Registration%20Wizard"

http://help.k2.com/onlinehelp/k2five/icg/5.0/default.htm#Install/AppDeployment.htm?Highlight="Registration%20Wizard"

http://help.k2.com/onlinehelp/k2cloud/userguide/Current/default.htm#K2_for_SharePoint/Add_Steps.htm?Highlight="Registration%20Wizard"

 

The tenant admin account (also known as Global Admin) is only applicable to K2 Appit/K2 Cloud, or K2 Hybrid (K2 Five on-prem connected to SharePoint Online).

The Tenant/Global Admin is a Office365 role that can be assigned to an Office 365 user:

https://support.office.com/en-us/article/Assign-admin-roles-in-Office-365-for-business-eac4d046-1afd-4f1a-85fc-8219c79e1504?ui=en-US&rs=en-US&ad=US

* This account will usually be the account that was used to add and Trust the K2 App for SharePoint Online/Office 365.


0 replies

Be the first to reply!

Reply