From 35a16688579edbe10b93b3ca555dd0f964213dd8 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Sun, 30 Nov 2025 22:30:50 -0800 Subject: [PATCH] Update access control instructions in login_and_acl.md Revised instructions for enabling access control on search index, clarifying conditions based on index existence. --- docs/login_and_acl.md | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/login_and_acl.md b/docs/login_and_acl.md index c2d5f7eb17..1a7afbc1f1 100644 --- a/docs/login_and_acl.md +++ b/docs/login_and_acl.md @@ -68,18 +68,6 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr azd env set AZURE_USE_AUTHENTICATION true ``` -1. **Enable access control on your search index** - - - **If the index does not exist yet:** - Run the `prepdocs` script. - - - **If the index already exists:** - Execute this command to enable ACLs: - - ```shell - python ./scripts/manageacl.py --acl-action enable_acls - ``` - 1. (Optional) **Enforce access control** To ensure that the app restricts search results to only documents that the user has access to, run the following command: @@ -117,6 +105,16 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr azd auth login --tenant-id ``` +1. **Enable access control on your search index (if it already exists)** + + If your search index already exists, you need to enable access control on it: + + ```shell + python ./scripts/manageacl.py --acl-action enable_acls + ``` + + If your index does not exist yet, access control will be automatically enabled when the index is created during deployment. + 1. **Deploy the app** Finally, run the following command to provision and deploy the app: