Skip to content

Access denied Get/Set-PnPUnifiedGroup after running Add-PnPOffice365GroupToSite #6235

@markgort86

Description

@markgort86

@VesaJuvonen In our organisation we're having some troubles with Set/Get-PnPUnifiedGroup after connecting a SharePoint site to an Microsoft 365 group. I created a github issue on PnP-PowerShell (see link below). But nobody is responding to it. The proces to reproduce is the following:

  • Connect-SPOService
  • Add-PnPOffice365GroupToSite or Set-SPOSiteOffice365Group (last one is not supported for a Production environment)
  • Connect-PnPOnline (appid and appsecret)
  • Get-PnPUnifiedGroup - identity [GroupID]

Result of the last command-let is an access denied visible in Fiddler (only on two tenants where Exhange Online is not fully configured). On a tenant where Exchange Online is configured this process is working fine. We are using Set-PnPUnifiedGroup to set the members and owners to this newly created Microsoft 365 group. Not the AzureAD commands that is visible in the script on this documentation page. If i'm using Get-UnifiedGroup (Exchange Online Module) i don't get a access denied, but this one is not using our App Registration. I hope you can give me some details what is going wrong over here.

See for more details: pnp/PnP-PowerShell#2842


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devarea:pnp-librariesCategory: PnP Libraries (may be moved to appropriate project repo)type:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions