Using the currently logged role in the search endpoints (initial support for permissions on search endpoints)