Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
POST https://[search service].search.windows.net/indexes/securedfiles/docs/index?api-version=2023-11-01
{
     "name": "securedfiles",  
     "fields": [
         {"name": "file_id", "type": "Edm.String", "key": true, "searchable": false },
         {"name": "file_name", "type": "Edm.String", "searchable": true },
         {"name": "file_description", "type": "Edm.String", "searchable": true },
         {"name": "group_ids", "type": "Collection(Edm.String)", "filterable": true, "retrievable": false }
     ]
 }
 //https://learn.microsoft.com/en-ca/azure/search/search-security-trimming-for-azure-search#create-security-field
  1. In order to trim documents based on group_ids access, we should issue a search query with a filter.

Code Block
languagejson
{
   "filter":"group_ids/any(g:search.in(g, 'group_id1, group_id2'))"  
}
  1. Azure AI Search is already connected to the Blob Storage via a connectionstring using an encrypted account key

Infra & Security : Combining the milestones 2 & 3

...