[#1221] use write url for search as this uses correct priviledges
Merge branch '1221-preview-fails-private-datasets'