My solution contains Site Collection scope features and has been deployed to Site Collections that the farm administrator has not been granted any explicit permissions.
If the farm administrator tries to visit the site collection in the browser he sees an Access Denied error message.
The farm admin now needs to deploy an upgrade to my Solution.
He has successfully called the powershell cmdlet
when the farm admin calls
SPContentDatabase.QueryFeatures("Site",$true) it returns the feature that needs to be upgraded in the site that he has no permissions to access.
However if the farm admin calls
SPFeature.Upgrade($true) then an access denied error is thrown.
How is the site collection feature upgrade supposed to work?
Should the farm admin delegate site collection feature upgrade to the site collection owner?
Should the farm admin try to impersonate the site collection administrator?
Is there some user I can elevate to that is guaranteed to be able to call Upgrade on a site collection feature?