Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Enable SetSite operations for onpremises #2293

Closed
wants to merge 5 commits into from

Conversation

jensotto
Copy link
Contributor

@jensotto jensotto commented Oct 6, 2019

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

No

What is in this Pull Request ?

Enabled some of the SetSite operations for onpremises versions of SharePoint

@jensotto
Copy link
Contributor Author

jensotto commented Feb 4, 2020

@erwinvanhunen @KoenZomers is it possible to get this included soon? It's been almost 4 months now without any progress.

@ToddKlindt
Copy link
Contributor

@erwinvanhunen @KoenZomers is it possible to get this included soon? It's been almost 4 months now without any progress.

All of the functionality is done by volunteers, so they add what they like to add. Not everything makes it in if no one volunteers to add it.

@KoenZomers
Copy link
Collaborator

Sorry for the delay in validating this PR @jensotto. Trying to catch up on the backlog and didn't have easy access to an on prem SharePoint installation to validate your PR. Will look into it.

@KoenZomers KoenZomers self-assigned this Feb 4, 2020
@KoenZomers
Copy link
Collaborator

Looking into this one now. It's a bit messy. Against which on premises SharePoint version(s) have you tested this yourself? I'm testing it against SharePoint 2019 now.

I'm connecting using:

Connect-PnPOnline -Url https://team.contoso.local -TenantAdminUrl https://ca.contoso.local:10000 -Credentials (Get-Credential) -IgnoreSslErrors

The Set-PnPSite -Owners "john@contosoltd.local" command for me doesn't work and throws:

Set-PnPSite : Cannot find stub for type with id "{268004ae-ef6b-4e9b-8425-127220d84719}". The specified server may not support APIs used in this operation.

Same for Set-PnPSite -NoScriptSite:$true and Set-PnPSite -LocaleId 1043 and Set-PnPSite -AllowSelfServiceUpgrade:$true

Have you done anything special to support this on premises?

@jensotto
Copy link
Contributor Author

jensotto commented Feb 4, 2020

You need to configure the proxy library for tenant administration server stub. I’ve written about it in a resource in the SharePointDSC module. It refers to blog posts by Vesa Juvonen.
https://github.com/dsccommunity/SharePointDsc/wiki/SPWebAppClientCallableSettings

@jensotto
Copy link
Contributor Author

jensotto commented Feb 4, 2020

You also probably need to assign a site as Tenant Administration site for some of the functionalities. It's explained how to do this in the blog post by Vesa.

@KoenZomers
Copy link
Collaborator

Thanks. Will give that a try.

@KoenZomers
Copy link
Collaborator

Got it to work and validated that this works properly against SharePoint 2019. It will be merged through PR #2494

@KoenZomers KoenZomers closed this Feb 6, 2020
@KoenZomers KoenZomers mentioned this pull request Mar 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants