Skip to content

[BUG] Get-PnPTenantRestrictedSearchMode: The given key was not present in the dictionary. #109 #5036

@yehonatanbitt

Description

@yehonatanbitt

Reporting an Issue or Missing Feature

When I execute Get-PnPTenantRestrictedSearchMode, response is Get-PnPTenantRestrictedSearchMode: The given key was not present in the dictionary..
I'm using pwsh (PowerShell 7.5.2) on a Mac device, with latest PnP nightly build (3.1.96), but still getting that error.

Expected behavior

Showing Enabled/ Disabled.

Actual behavior

Returning the given output:
Get-PnPTenantRestrictedSearchMode: The given key was not present in the dictionary.

Steps to reproduce behavior

Connect-PnPOnline -Url -ClientId -Tenant -CertificatePath
Get-PnPTenantRestrictedSearchMode | fl

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

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   3.1.96     nightly    PnP.PowerShell                      Desk      {Add-PnPAdaptiveScopeProperty, Add-PnPEntraI…

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions