You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agent365-guided-setup/a365-setup-instructions.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Once the user provides the ID, replace `<CLIENT_APP_ID>` in the command below an
89
89
az ad app show --id <CLIENT_APP_ID> --query "{appId:appId, displayName:displayName, requiredResourceAccess:requiredResourceAccess}" -o json && az ad app permission list-grants --id <CLIENT_APP_ID> --query "[].{resourceDisplayName:resourceDisplayName, scope:scope}" -o table
90
90
```
91
91
92
-
From the output of the command above, verify these 5 permissions appear with admin consent. If any are missing or consent is not granted, see "What to do if validation fails" below.
92
+
From the output of the command above, verify these 6 permissions appear with admin consent. If any are missing or consent is not granted, see "What to do if validation fails" below.
93
93
94
94
Required **delegated** Microsoft Graph permissions (all must have **admin consent granted**):
95
95
@@ -100,14 +100,15 @@ Required **delegated** Microsoft Graph permissions (all must have **admin consen
100
100
|`Application.ReadWrite.All`| Create and manage Azure AD applications |
101
101
|`DelegatedPermissionGrant.ReadWrite.All`| Grant delegated permissions |
102
102
|`Directory.Read.All`| Read directory data |
103
+
|`User.ReadWrite.All`| Create agent users, set usage location, and assign licenses |
103
104
104
105
If the app does not exist, permissions are missing, or admin consent has not been granted, see "What to do if validation fails" below.
105
106
106
107
**If validation fails** (app not found, permissions missing, or no admin consent):
107
108
108
109
1. STOP — do not proceed to run any `a365` CLI commands.
109
110
2. Inform the user the custom client app registration is missing or incomplete.
110
-
3. Direct the user to the official setup guide: register the app, configure as a Public client with redirect URI `http://localhost:8400`, add all five permissions above, and have a Global Admin grant admin consent.
111
+
3. Direct the user to the official setup guide: register the app, configure as a Public client with redirect URI `http://localhost:8400`, add all six permissions above, and have a Global Admin grant admin consent.
111
112
4. Wait for the user to confirm the app is properly configured, then re-run the same validation command above.
112
113
113
114
Save the `clientAppId` value — it will be used automatically in Step 3 (do NOT ask the user for it again).
0 commit comments