Home

Search Filter with User Profile Custom Property not working

%3CLINGO-SUB%20id%3D%22lingo-sub-366657%22%20slang%3D%22en-US%22%3ESearch%20Filter%20with%20User%20Profile%20Custom%20Property%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-366657%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20achieve%20below%20functionalities.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20one%20list%20where%20I%20have%20added%20Category%20field%20with%20Taxonomy%20type%20with%20Multi%20Allow.%20I%20have%20also%20created%20one%20User%20Profile%20Property%20of%20Type%20Taxonomy%20with%20Multi%20Allow.%20Both%20the%20things%20are%20mapped%20to%20same%20termset.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EColumn%20Name%3A%20NewsCategories%3C%2FP%3E%3CP%3EUser%20Profile%20Property%20Name%3A%20NewsIgnoredCategories%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EManaged%20Property%20Name%20for%20Taxonomy%20Column%3A%20NewsCategories%3C%2FP%3E%3CP%3EManaged%20Property%20Name%20for%20User%20Profile%20Properties%3A%20NewsIgnoredCategories%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20I%20want%20to%20configure%20Search%20Result%20web%20part%20in%20such%20a%20way%20like%20It%20should%20show%20result%20from%20above%20list%20where%20Category%20does%20not%20contain%20values%20which%20is%20set%20in%20current%20user%20profile%20property.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20followed%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FSharePoint%2Ftechnical-reference%2Fquery-variables%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FSharePoint%2Ftechnical-reference%2Fquery-variables%3C%2FA%3E%26nbsp%3Blink%20and%20tried%20with%20following%20query%20but%20it%20does%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%7B%7CNewsCategories%3A%7BUser.NewsIgnoredCategories%7D%7D%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20me%20to%20find%20a%20solution%20or%20work%20around%20for%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-366657%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Kalpesh_Vaghela
Occasional Contributor

I want to achieve below functionalities.

 

I have one list where I have added Category field with Taxonomy type with Multi Allow. I have also created one User Profile Property of Type Taxonomy with Multi Allow. Both the things are mapped to same termset.


Column Name: NewsCategories

User Profile Property Name: NewsIgnoredCategories

 

Managed Property Name for Taxonomy Column: NewsCategories

Managed Property Name for User Profile Properties: NewsIgnoredCategories

 

Now I want to configure Search Result web part in such a way like It should show result from above list where Category does not contain values which is set in current user profile property.

 

I have followed https://docs.microsoft.com/en-us/SharePoint/technical-reference/query-variables link and tried with following query but it does not work.

 

-{|NewsCategories:{User.NewsIgnoredCategories}} 

 

Can anyone help me to find a solution or work around for that?