pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
200 stars 140 forks source link

Unable to Groupify already created sharepoint site #995

Open Dipali-arup opened 3 months ago

Dipali-arup commented 3 months ago

VS 2022 Azure Function v4 .Net 8.0 PnP.Framework" Version="1.14.0"

Using Sharepoint username and secure password to do the authentication. AuthenticationManager auth = new AuthenticationManager(SPAdminUserName, securePassword);

creating site collection using TeamNoGroupSiteCollectionCreationInformation and calling PnP.Framework.Sites.SiteCollection.Create method. Next, we are trying to groupify the same site collection as below.

var groupifyprjsite = new TeamSiteCollectionGroupifyInformation
{
    Alias = aliasName,
    DisplayName = siterequestmessage.TeamOrSiteName,
    IsPublic = false,
    KeepOldHomePage = true,
    Description = siterequestmessage.SiteDescription,
    Owners = receivedSiteOwners,
    SiteAlias = aliasName
};
tenant.GroupifySite(siterequestmessage.SiteUrl, groupifyprjsite);    

when try to groupify site using GroupifySite , it throws exception as below: {"An error occurred while processing this request."} "System.Data.Services.Client.DataServiceRequestException"

image

We have tried using other method(CreateGroupForSite) on Tenant class as well which throws the same exception. Please advice. Thank you,

Dipali-arup commented 1 month ago

hey @jansenbe , I wonder whether there is any workaround for above issue? Thanks,