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
Refactor custom permissions: new 'config permissions' cmd
Major overhaul of custom blueprint permissions management:
- Adds `a365 config permissions` subcommand for add/update/list/reset
- Removes old permission flags from `config init`
- Integrates improved permission step into interactive wizard
- Updates all docs and tests to use new command/flags
- Improves validation, error messages, and config file discovery
- Refactors logic into PermissionsSubcommand.cs and adds helper methods
- Adds comprehensive unit tests for CLI and wizard flows
- Enhances UX: wizard re-prompts only for invalid scopes
- CLI suggests next steps after permission changes
This modernizes and simplifies custom API permission management for agent blueprints.
@@ -292,7 +292,7 @@ The CLI validates custom permissions at multiple stages:
292
292
293
293
### Config Validation
294
294
295
-
When adding permissions via `a365 config init`:
295
+
When adding permissions via `a365 config permissions` (or the `a365 config init` wizard):
296
296
- ✅ **GUID Format**: Resource App ID must be a valid GUID
297
297
- ✅ **Required Fields**: Resource App ID (GUID) and scopes are required; resource name is optional and will be auto-resolved during setup if not provided
298
298
- ✅ **Scopes**: At least one scope must be specified
@@ -313,10 +313,10 @@ When applying permissions via `a365 setup permissions custom`:
313
313
314
314
```
315
315
WARNING: No custom blueprint permissions configured in a365.config.json
316
-
Run 'a365 config init --custom-blueprint-permissions --resourceAppId <guid> --scopes <scopes>' to configure custom permissions.
316
+
Run 'a365 config permissions --resource-app-id <guid> --scopes <scopes>' to configure custom permissions.
317
317
```
318
318
319
-
**Solution**: Add custom permissions to config first using `a365 config init --custom-blueprint-permissions`
319
+
**Solution**: Add custom permissions to config first using `a365 config permissions`
320
320
321
321
### Error: Blueprint Not Found
322
322
@@ -340,7 +340,7 @@ ERROR: Invalid resourceAppId 'not-a-guid'. Must be a valid GUID format.
340
340
### Error: Invalid Permission Configuration
341
341
342
342
```
343
-
ERROR: Invalid custom permission configuration: resourceAppId must be a valid GUID, resourceName is required, At least one scope is required
343
+
ERROR: Invalid custom permission configuration: resourceAppId must be a valid GUID, At least one scope is required
344
344
```
345
345
346
346
**Solution**: Ensure all required fields are properly configured in `a365.config.json`
@@ -494,7 +494,7 @@ After configuring custom permissions:
494
494
495
495
1.**Test the agent**: Verify it can access the custom resources
496
496
2.**Monitor usage**: Check Azure Portal for API call patterns
497
-
3.**Update as needed**: Add or remove scopes using `a365 config init --custom-blueprint-permissions`
497
+
3.**Update as needed**: Add or remove scopes using `a365 config permissions`
498
498
4.**Deploy updates**: Run `a365 setup permissions custom` to apply changes
0 commit comments