Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2017-06-14 16:55:03

ohilton
Member
Registered: 2013-10-04
Posts: 12

Missing metadata fields in Search.GetSearchConfiguration

We seem to be missing some of our custom metadata fields from the list when calling the Search.GetSearchConfiguration API endpoint.  The missing attributes are generally quite new ones but others that have been around a while are also missing.  We have a number of custom metadata fields available to us but these largely seem to be ones we created a number of years ago. I can't see anything in the configuration of the metadata fields themselves to make them available to the Advanced Search API which is our ultimate goal, wondered if it was a permissions thing.

Offline

#2 2017-06-14 17:42:39

Support.Engineer
Member
Registered: 2015-06-08
Posts: 3

Re: Missing metadata fields in Search.GetSearchConfiguration

Hi, enabling the missing custom metadata fields in the 'Configuration > Search Preferences > Search Scope' page should resolve the issue.

Offline

#3 2017-06-15 10:07:49

ohilton
Member
Registered: 2013-10-04
Posts: 12

Re: Missing metadata fields in Search.GetSearchConfiguration

Hey, no the fields I want to search on are already enabled in that view, it also seems some of the field not enabled are coming through in the Search.GetSearchConfiguration response too so it doesn't look like there's any correlation between the two.

Offline

#4 2017-06-15 11:11:45

steve
Third Light Staff
Registered: 2013-06-06
Posts: 85

Re: Missing metadata fields in Search.GetSearchConfiguration

Hi,

Are you using an API key but are not subsequently impersonating a particular user's account? If so the account that would be used for your session would be the first administrator account listed on the following page:

Users > Users & Groups

You should then confirm that the metatadata field you are interested in does not have any restrictions placed upon it for that user account.

Configuration > Metadata > Customise Metadata > Edit YourField > Restrictions > User Restrictions

Offline

#5 2017-06-15 14:41:08

ohilton
Member
Registered: 2013-10-04
Posts: 12

Re: Missing metadata fields in Search.GetSearchConfiguration

That could well be the issue then, is that a new concept?  Can you point me at the documentation around impersonating a specific account in the API?

Offline

#6 2017-06-15 15:08:26

steve
Third Light Staff
Registered: 2013-06-06
Posts: 85

Re: Missing metadata fields in Search.GetSearchConfiguration

User impersonation and per-user metadata restrictions have been available for a few years now. Here is a post  from 2015 for example: https://devexchange.thirdlight.com/viewtopic.php?id=139

Please see Core_ImpersonateUser under Help > API Reference

Offline

#7 2017-06-16 11:59:19

ohilton
Member
Registered: 2013-10-04
Posts: 12

Re: Missing metadata fields in Search.GetSearchConfiguration

Thanks Steve

Offline

Board footer