Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Groupify already created sharepoint site #995

Open
Dipali-arup opened this issue Mar 13, 2024 · 1 comment
Open

Unable to Groupify already created sharepoint site #995

Dipali-arup opened this issue Mar 13, 2024 · 1 comment

Comments

@Dipali-arup
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant