The getUnauthenticatedUserSearchPreferences
method is available in custom.js
scripts after the application is fully loaded. It allows administrators to retrieve an unauthenticated user's search preferences.
Example
const preferences = getUnauthenticatedUserSearchPreferences()