powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Get-PnPExternalUser fails with message "SyntexFeatureLevelOnOff flight is not enabled"

Open pmatthews05 opened this issue 3 years ago • 31 comments

Reporting an Issue or Missing Feature

When calling Get-PNPExternalUser, it fails with the following error

SyntextFeatureLevelOnOff flight is not enabled

This was working 3 days ago, and stop working this morning. I've tested on a couple of tenants.

Expected behavior

Expected to see a list of external users.

Actual behavior

Fails with error message: "SyntextFeatureLevelOnOff flight is not enabled"

image

Steps to reproduce behavior

Connect-PnpOnline -Url:"https://<sharepoint>-admin.sharepoint.com -PnPManagementShell
Get-PnPExternalUser

What is the version of the Cmdlet module you are running?

2.2.0

Which operating system/environment are you running PnP PowerShell on?

  • [x] Windows
  • [ ] Linux
  • [ ] MacOS
  • [x] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

pmatthews05 avatar Aug 21 '23 12:08 pmatthews05

I am getting this same error message when using the Disable-PnPSharingForNonOwnersOfSite command as well. image

rdicicco avatar Aug 21 '23 22:08 rdicicco

Same error, started today: image

andreyp115 avatar Aug 21 '23 23:08 andreyp115

Facing same error in our tenant.

But its working in local development tenant.

Please suggest how to solve this issue

sabadraprasham avatar Aug 22 '23 05:08 sabadraprasham

Facing same error in our tenant.

But its working in local development tenant.

Please suggest how to solve this issue

We are also experiencing the same issue. Can someone from MS guide us to resolve it or any workaround would work too? pls. help ASAP

rajmcablr avatar Aug 22 '23 06:08 rajmcablr

Same issue with the SharePoint PowerShell command: Get-SPOExternalUser

joaquinajenjo avatar Aug 22 '23 06:08 joaquinajenjo

This problem starts with creating a new TeamSite with the following command: New-PnPSite -Type TeamSite -Title ($TeamName) -Alias $TeamSPOName -Description $ProjectName -Owners $ObjectOwner -Wait

This currently results in an SPO site without the sharing options at the permissions section and most of the site settings. Subsequently other commands like below fail with the SyntexFeatureLevelOnOff message. Set-SPOSite -Identity $SiteCollURL -DisableSharingForNonOwners

image

image

NorbertPU avatar Aug 22 '23 08:08 NorbertPU

Same issue with: Set-PnPSite -DisableSharingForNonOwners

Sharepoint2k22 avatar Aug 22 '23 08:08 Sharepoint2k22

Same issue with Set-PnPSite -Sharing ... (fails in 2.2.0 and also 1.3.0).

enthusol avatar Aug 22 '23 08:08 enthusol

same here....

` LogS "General page configuration"

    #Region How to share Setting        
    LogC "Set Sharing to 'Allow sharing only for owners'..."
    Set-PnPSite -Identity $site.Url -DisableSharingForNonOwners -Connection $connection -ErrorAction SilentlyContinue -ErrorVariable ErrPnpSiteShareing | Out-null        

    if($ErrPnpSiteShareing){
        Exit-WithError -exitCode 6 -message $ErrPnpSiteShareing     
        #LogE  ("   " + $ErrPnpSiteShareing)
    }`

fails with - SyntexFeatureLevelOnOff flight is not enabled

There was something changed in the backend.

I have one affected tenant, other tenant (same config, same module) is working fine. Maybe this correlates with Change [MC665222 - SharePoint: Page Sharing Feature]?

I opened case "‎Disabling Sharing for non Owners ist not working anymore.‎ (#‎2308221420001847‎)' at Microsoft, will post updates here.

FlorianKornmueller avatar Aug 22 '23 14:08 FlorianKornmueller

Gets same error with the below commands

Disable-PnPSharingForNonOwnersOfSite
Get-PnPSharingForNonOwnersOfSite
Get-PnPExternalUser
Set-PnPTenantSite -DisableSharingForNonOwners

PS-Issue-3353

//Nishkalank

NishkalankBezawada avatar Aug 22 '23 16:08 NishkalankBezawada

Same here!, not only with the PNP module but also with Microsoft.Online.SharePoint.PowerShell

Nicomadreja87 avatar Aug 22 '23 16:08 Nicomadreja87

Same here!, not only with the PNP module but also with Microsoft.Online.SharePoint.PowerShell

Found the issue, A total of 4 commands are having same issue. Will create a new Pull request soon.

Thanks, Nishkalank

NishkalankBezawada avatar Aug 22 '23 16:08 NishkalankBezawada

@NishkalankBezawada, you say that you've found the issue, can you elaborate? I ask because this is not just an issue with the PnP.PowerShell module, so I'm not understanding how this can be fixed with a PR just for this module.

LastGunslinger avatar Aug 22 '23 16:08 LastGunslinger

@NishkalankBezawada, you say that you've found the issue, can you elaborate? I ask because this is not just an issue with the PnP.PowerShell module, so I'm not understanding how this can be fixed with a PR just for this module.

image

Line number 32 is causing the issue.

//Nish

NishkalankBezawada avatar Aug 22 '23 17:08 NishkalankBezawada

Hello @pmatthews05 @rdicicco @andreyp115 @sabadraprasham @joaquinajenjo @Sharepoint2k22 @enthusol @FlorianKornmueller @Nicomadreja87

I have just created a PR 3357 which will fix the issue.

Thanks, Nishkalank Bezawada

NishkalankBezawada avatar Aug 22 '23 17:08 NishkalankBezawada

Thank you Nishkalank. Can you include a note here on how we would go about getting access to this updated module? Should we just download the latest version of the PnPPowerShell Module?

wpsgo avatar Aug 22 '23 19:08 wpsgo

Thank you Nishkalank. Can you include a note here on how we would go about getting access to this updated module? Should we just download the latest version of the PnPPowerShell Module?

Hello,

Once the PR is merged into the Dev branch, the updated module will be available on the latest nightly release. I'm not sure when the PR will be merged but yes I'll keep you posted here.

Thanks, Nishkalank Bezawada

NishkalankBezawada avatar Aug 22 '23 19:08 NishkalankBezawada

@NishkalankBezawada Thank you for the quick solution, great work! Would it be possible to add a fix for PnP.PowerShell 1.12.0 as well?

We have a lot of customers that rely on PnP.PowerShell 1.x.x because the module is used on runbooks in Azure Automation Accounts with PowerShell 5.1 (because 7.1 and 7.2 are still in preview).

enthusol avatar Aug 23 '23 06:08 enthusol

@NishkalankBezawada Thank you for the quick solution, great work! Would it be possible to add a fix for PnP.PowerShell 1.12.0 as well?

We have a lot of customers that rely on PnP.PowerShell 1.x.x because the module is used on runbooks in Azure Automation Accounts with PowerShell 5.1 (because 7.1 and 7.2 are still in preview).

This applies to many of our customers too who are running 1.12.0 in Azure Automation for the same reasons. Will there by a fix for 1.12.0?

Sharepoint2k22 avatar Aug 23 '23 07:08 Sharepoint2k22

From my point of view the problem SyntexFeatureLevelOnOff-Problem starts a bit earlier with New-PnPSite Sites created through New-PnPSite (PnP.Powershell 1.12.0) are not fully functional: The settings https://TENANT.sharepoint.com/sites/SITE/_layouts/15/settings.aspx show only part of the settings: image

The settings should look like this: image

The same problem with the sharing permissions: They look like this after using New-PnPSite image

They should look like this: image

When I manually create a TeamSite through the SharePoint Admin-Center I can then use commands like Set-SPOSite -Identity $SiteCollURL -DefaultLinkToExistingAccess $true or Disable-PnPSharingForNonOwnersOfSite without having the SyntexFeatureLevelOnOff-Problem.

Does anybody else experience this behaviour with New-PnPSite?

NorbertPU avatar Aug 23 '23 08:08 NorbertPU