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

[FEATURE] Get-PnPSearchConfiguration support for Refinable managed properties #4340

Open
LutzD-pkb opened this issue Sep 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@LutzD-pkb
Copy link

LutzD-pkb commented Sep 24, 2024

Describe the solution you'd like
Get-PnPSearchConfiguration currently returns all custom managed properties. Unfortunately, while this would have been sufficient for on-prem SharePoint, any time you need properties to be refinable or sortable in SPO, you have to map crawled properties to the existing refinable managed properties (e.g., RefinableString00, RefinableDate19). I would like for the Get-PnPSearchConfiguration to be able to retrieve any of these properties that have mappings.

Describe alternatives you've considered
There is no other alternative that I've found. There does not appear to be any way within Graph or SPO REST to retrieve managed properties.

Additional context
I'm attempting this as part of a broader attempt to use Microsoft 365 DSC, which utilizes PnP.PowerShell.

@LutzD-pkb LutzD-pkb added the enhancement New feature or request label Sep 24, 2024
@koskila
Copy link
Contributor

koskila commented Oct 28, 2024

Heya, how are you trying to pull the refinable managed properties? For me, this returns the custom AND refinable properties for the whole tenant:

Get-PnPSearchConfiguration -Scope Subscription -OutputFormat ManagedPropertyMappings

@LutzD-pkb
Copy link
Author

Get-PnPSearchConfiguration -Scope Subscription. See context: Microsoft365DSC > MSFT_SPOSearchManagedProperty.psm1

The -OutputFormat ManagedPropertyMappings flag does appear to pull back the Refinable properties, but does not include all of the other managed property attributes.

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

No branches or pull requests

2 participants