Is it possible to change the ownership of an existing site by setting a Microsoft Entra group as the new site owner ? #1662
Unanswered
emassone-coreview
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm new to SharePoint and the
Pnp.Core
library.I'm trying to perform the following actions:
This is the code I'm using to do that:
If i try to do this I got the following exception:
PnP.Core.CsomServiceException: 'CSOM service exception'
Stacktrace:
Error.Message:
The login name 1a985e8f-4e74-4549-952f-5b077750782f was not found in the tenant.
Here I have used fictious Tenant name and group id; in my real testing setup I have already verified that my Tenant do contains a group having the object id I'm using for my test. So, I'm sure that a group with that id exists in the Tenant.
Is this a known limitation of the library (not being able to assign a group as the primary admin of the site ? What I noticed is that if I try to do the very same operation from the UI of the SharePoint admin center it works fine.
Thanks for helping.
Beta Was this translation helpful? Give feedback.
All reactions