Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add site collection app catalog as SharePoint Admin role #1348

Closed
1 of 4 tasks
quarterhorse opened this issue Feb 12, 2018 · 8 comments
Closed
1 of 4 tasks

Cannot add site collection app catalog as SharePoint Admin role #1348

quarterhorse opened this issue Feb 12, 2018 · 8 comments
Assignees
Labels
status:by-design Topic described is by design & not considered an issue.

Comments

@quarterhorse
Copy link

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

If you are planning to share a new feature request (enhancement / suggestion), please use SP Dev UserVoice at http://aka.ms/sp-dev-uservoice.

Expected or Desired Behavior

A user with the SharePoint Administration role should be able to add a site collection app catalog through add-spositecollectionappcatalog as a site collection administrator.

Observed Behavior

The cmdlet generates the error "Must have Manage Web Site permissions or be a tenant admin in order to add or remove sites from the site collection app catalog allow list"

add-spositecollectionappcatalog : Must have Manage Web Site permissions or be a tenant admin in order to add or remove sites from the site collection app catalog allow list

At line:1 char:1

  • add-spositecollectionappcatalog -site
  •   + CategoryInfo          : NotSpecified: (:) [Add-SPOSiteCollectionAppCatalog], ServerException
      + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.AddSiteCollectionAppCatalog
    
    

Steps to Reproduce

  • An existing on-premise active directory account is synchronized to azure ad.
  • The active directory account is granted the SharePoint Administrator role.
  • The user logs into the SharePoint Administration center with the account having the assigned role
  • The user provisions a publishing site collection with the user as the site collection administrator (verified by see the SharePoint Administrator account in the site collection administrators list in the resultant Site Collection).
  • Open the SharePoint Online Management Shell (version 16.0.7317.1200).
  • Connect to sposervice.
  • Execute add-spositecollectionappcatalog -site
@VesaJuvonen VesaJuvonen self-assigned this Feb 13, 2018
@VesaJuvonen VesaJuvonen added the status:by-design Topic described is by design & not considered an issue. label Feb 13, 2018
@VesaJuvonen
Copy link
Contributor

Hi @quarterhorse - this is actually by-design for now. You can certainly submit a user voice entry to start collecting the demand for change the behavior.

@sympmarc
Copy link
Contributor

sympmarc commented Jul 9, 2018

@VesaJuvonen: I'm getting the same error. The message feels a little misleading. I'm trying to create a Site Collection App Catalog, and I'm a Site Collection Administrator. Clearly that gives me "Manage Web Site permissions" - on the Site Collection where I am trying to create the App Catalog. Should I assume the permissions part of the error applies to the Tenant App Catalog site?

@cathornton
Copy link

Hi, firstly, I can't see how you were able to dismiss this as "By Design" when the steps taken should have worked OK.
But anyway, I had this same error and finally found the issue: the part of the error "Must have Manage Web Site permissions" actually relates to the App Catalog site collection, not to the site you are adding to the App Catalog.
Add your account as Site Collection Admin to the App Catalog, and it should go through.

@sparkitect
Copy link
Contributor

I can verify that making your account a Site Collection Administrator on the tenant App Catalog Site Collection makes it possible to create a Site Collection App Catalog using the method described in the documentation.

Perhaps the following note could be added to said documentation:
NOTE: The account used to execute these commands must be a Site Collection Administrator on both the tenant-level App Catalog and the target Site Collection.

@JBoman32768
Copy link

Confirmed - it doesn't matter if you are a Global Tenant Administrator, if you don't have site collection admin rights to the tenant level App Catalog, this will fail.

@VesaJuvonen - is this still by design?

@alirobe
Copy link
Contributor

alirobe commented Feb 5, 2019

Thanks @JBoman32768. It would be nice if the error message was updated to let people know about this. Error message is quite unclear.

https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/33321112-users-with-sharepoint-admin-roles-should-be-able-t

@JBoman32768
Copy link

JBoman32768 commented Feb 5, 2019

The error message is actually quite clear - and incorrect, but somehow "by design"
"Must have Manage Web Site permissions or be a tenant admin in order to add or remove sites from the site collection app catalog allow list"
Both of these things are irrelevant.

@msft-github-bot
Copy link
Collaborator

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:by-design Topic described is by design & not considered an issue.
Projects
None yet
Development

No branches or pull requests

8 participants