Adding permissions to search index