Issue with Add-PnPOffice365GroupToSite

Santhosh PS 1 Reputation point
2020-08-28T09:29:18.407+00:00

We are getting the below error when we run below Powershell PNP command to groupify a site.

Add-PnPOffice365GroupToSite : Microsoft.Office.Server.Directory.RequestFailure
At C:\Temp\05hh115r.yqq\O365_Groupify_Implement.ps1:316 char:13

  • Add-PnPOffice365GroupToSite -Url $siteCollectionUrl -Alia ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : WriteError: (:) [Add-PnPOffice365GroupToSite], ServerException
  • FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Admin.AddOffice365GroupToSite

Seems the parameters are valid and this was triggered by using Azure Runbooks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,011 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 35,616 Reputation points Microsoft Employee
    2020-08-28T19:46:03.48+00:00

    Certain operations can't be app-only and require user interaction for auditing purposes, and group creation is one of them.

    This looks like potentially the same issue: https://github.com/SharePoint/sp-dev-docs/issues/3799

    https://github.com/SharePoint/sp-dev-docs/issues/3718

    In this case the scenario you described is unsupported and you would need to make a feature request to change this. https://feedback.azure.com/

    0 comments No comments

  2. Emily Du-MSFT 43,176 Reputation points Microsoft Vendor
    2020-08-31T08:18:50.767+00:00

    You could provide the screenshot of PowerShell you run for further troubleshooting.

    Make sure the site collection in the PowerShell a classic team site and the PnP is latest version.

    Reference:

    SharePoint pnp cmdlets


    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments