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"
We have tried using other method(CreateGroupForSite) on Tenant class as well which throws the same exception.
Please advice.
Thank you,
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.
when try to groupify site using GroupifySite , it throws exception as below: {"An error occurred while processing this request."} "System.Data.Services.Client.DataServiceRequestException"
We have tried using other method(CreateGroupForSite) on Tenant class as well which throws the same exception. Please advice. Thank you,