Error Solution for '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'

Introduction

 
Recently, I was trying to create Site Collection App Catalogue on SharePoint Online through PowerShell, below are the commands that I used:
  1. Connect-SPOService -Url https://Domain-admin.sharepoint.com/ -credential [email protected]  
  2. $site = Get-SPOSite https://Domain.sharepoint.com/sites/IMS  
  3. Add-SPOSiteCollectionAppCatalog -Site $site  
Then I got the below error.
 
 
 
I am the SharePoint Tenant Admin, but then I also came across the article, where it was written that the user was trying to create an App for Site Collection must be a Site Collection Administrator for the Tenant Site Collection App Catalogue.
 
I made myself the Site Collection Administrator and I was able to create App Catalogue for Site Collection.
 
 
 
The User Rights necessary for creating an App Catalogue for Site are as follow:
 
- User must be a SharePoint Tenant Admin.
 
- User must be a Site Collection Administrator for Tenant Site Collection App Catalogue.