SOLVED

Using user profile hire date in Search Results Web Part

%3CLINGO-SUB%20id%3D%22lingo-sub-8506%22%20slang%3D%22en-US%22%3EUsing%20user%20profile%20hire%20date%20in%20Search%20Results%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8506%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20get%20the%20user%20hire%20date%20and%20presenting%20in%20a%26nbsp%3BSearch%20Results%20Web%20Part%20in%20a%20SharePoint%20Online%20tenant.%3C%2FP%3E%3CP%3EIn%20on-prem%20SharePoint%2C%20we%20had%20a%20crawled%20property%20SPS-HireDate%20which%20we%20could%20then%20map%20to%20a%20managed%20property%20and%20use%20it%20in%20Search%20Results%20or%20Content%20Search%20Web%20Parts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20what%20I%20see%2C%20in%20SharePoint%20Online%2C%20there%20is%20no%20crawled%20property%20mapped%20to%20the%20user%20profile%20Hire%20Date%20property.%3C%2FP%3E%3CP%3EAm%20I%20missing%20something%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMiguel%20Isidoro%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-8506%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8601%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20user%20profile%20hire%20date%20in%20Search%20Results%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8601%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20was%20exactly%20that.%20None%20of%20the%20user%20profiles%20had%20the%20property%20filled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMiguel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8508%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20user%20profile%20hire%20date%20in%20Search%20Results%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8508%22%20slang%3D%22en-US%22%3EI%20am%20wondering%20if%20this%20is%20not%20caused%20by%20the%20fact%20that%20the%20hire%20date%20may%20be%20empty%20in%20all%20user%20profiles%20for%20the%20tenant.%20Must%20at%20least%20one%20user%20profile%20have%20a%20valid%20date%20in%20the%20user%20profile%20Hire%20Date%20property%20so%20that%20the%20property%20gets%20crawled%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

I am trying to get the user hire date and presenting in a Search Results Web Part in a SharePoint Online tenant.

In on-prem SharePoint, we had a crawled property SPS-HireDate which we could then map to a managed property and use it in Search Results or Content Search Web Parts.

 

From what I see, in SharePoint Online, there is no crawled property mapped to the user profile Hire Date property.

Am I missing something?

 

Thanks,

Miguel Isidoro

2 Replies
I am wondering if this is not caused by the fact that the hire date may be empty in all user profiles for the tenant. Must at least one user profile have a valid date in the user profile Hire Date property so that the property gets crawled?
best response confirmed by Miguel Isidoro (Occasional Contributor)
Solution

Hello,

 

The problem was exactly that. None of the user profiles had the property filled.

 

Thanks,

Miguel