Skip to content

Commit 35a1668

Browse files
authored
Update access control instructions in login_and_acl.md
Revised instructions for enabling access control on search index, clarifying conditions based on index existence.
1 parent dbe9a34 commit 35a1668

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/login_and_acl.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,6 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr
6868
azd env set AZURE_USE_AUTHENTICATION true
6969
```
7070

71-
1. **Enable access control on your search index**
72-
73-
- **If the index does not exist yet:**
74-
Run the `prepdocs` script.
75-
76-
- **If the index already exists:**
77-
Execute this command to enable ACLs:
78-
79-
```shell
80-
python ./scripts/manageacl.py --acl-action enable_acls
81-
```
82-
8371
1. (Optional) **Enforce access control**
8472
To ensure that the app restricts search results to only documents that the user has access to, run the following command:
8573

@@ -117,6 +105,16 @@ The easiest way to setup the two apps is to use the `azd` CLI. We've written scr
117105
azd auth login --tenant-id <YOUR-TENANT-ID>
118106
```
119107

108+
1. **Enable access control on your search index (if it already exists)**
109+
110+
If your search index already exists, you need to enable access control on it:
111+
112+
```shell
113+
python ./scripts/manageacl.py --acl-action enable_acls
114+
```
115+
116+
If your index does not exist yet, access control will be automatically enabled when the index is created during deployment.
117+
120118
1. **Deploy the app**
121119
Finally, run the following command to provision and deploy the app:
122120

0 commit comments

Comments
 (0)