30011 [username] is not a member of the Package and Deployment role and cannot create or deploy packages
kbt138131
PRODUCTIssue
When attempting to create a package, the following warning appears:
Symptoms
When attempting to create a package, the following warning appears:
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:
Authorization Framework > 'Package and Deployment' role
When attempting to add self to 'Package and Deployment' role, it shows a warning message indicating:
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.
From the same documentation mentioned above:
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:
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:
* This account will usually be the account that was used to add and Trust the K2 App for SharePoint Online/Office 365.