Skip to content

Add OtelWrite scope, dedupe API specs, update Graph scopes - #348

Merged
sellakumaran merged 1 commit into
mainfrom
users/sellak/blueprintScopes
Apr 3, 2026
Merged

Add OtelWrite scope, dedupe API specs, update Graph scopes#348
sellakumaran merged 1 commit into
mainfrom
users/sellak/blueprintScopes

Conversation

@sellakumaran

@sellakumaran sellakumaran commented Apr 3, 2026

Copy link
Copy Markdown
Contributor
  • Grant Agent365.Observability.OtelWrite to agent identities for Observability API to enable OpenTelemetry writes.
  • Add ChannelMessage.Read.All and ChannelMessage.Send to default delegated Graph scopes; add Files.ReadWrite.All, ChannelMessage.Read.All, and ChannelMessage.Send to application Graph scopes.
  • Refactor repeated ResourcePermissionSpec blocks into SetupHelpers.GetFixedApiPermissionSpecs for maintainability.
  • Update log messages, comments, documentation, and changelog accordingly.
image

- Grant Agent365.Observability.OtelWrite to agent identities for Observability API to enable OpenTelemetry writes.
- Add ChannelMessage.Read.All and ChannelMessage.Send to default delegated Graph scopes; add Files.ReadWrite.All, ChannelMessage.Read.All, and ChannelMessage.Send to application Graph scopes.
- Refactor repeated ResourcePermissionSpec blocks into SetupHelpers.GetFixedApiPermissionSpecs for maintainability.
- Update log messages, comments, documentation, and changelog accordingly.
@sellakumaran
sellakumaran requested review from a team as code owners April 3, 2026 17:58
Copilot AI review requested due to automatic review settings April 3, 2026 17:58
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 38cba59.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Agent365 CLI setup flows to grant a new Observability permission needed for OpenTelemetry writes, expands the default Microsoft Graph scope sets for blueprints, and removes duplicated fixed API permission spec blocks by centralizing them in a shared helper.

Changes:

  • Add Agent365.Observability.OtelWrite scope and include it in Observability OAuth2 grants / fixed permission specs.
  • Expand default Microsoft Graph delegated/application scope lists to include Teams channel messaging scopes (and Files.ReadWrite.All for application scopes).
  • Refactor repeated fixed ResourcePermissionSpec initializers into SetupHelpers.GetFixedApiPermissionSpecs(...) and reuse across setup subcommands.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Microsoft.Agents.A365.DevTools.Cli/Constants/ConfigConstants.cs Adds Observability OtelWrite scope constant; expands default Graph scope lists.
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/SetupHelpers.cs Introduces shared helper to generate the fixed platform API permission specs.
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/PermissionsSubcommand.cs Updates dry-run logging and switches to the shared fixed-spec helper for bot permissions.
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AllSubcommand.cs Reuses the shared fixed-spec helper when building the combined permission spec list.
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/AdminSubcommand.cs Reuses the shared fixed-spec helper for GA-run permission grant completion.
src/Microsoft.Agents.A365.DevTools.Cli/Commands/CreateInstanceCommand.cs Adds OtelWrite to the Observability OAuth2 permission grant scopes (in preserved deprecated code path).
CHANGELOG.md Documents the new Observability scope and added Graph scopes under Unreleased.
.claude/agents/pr-code-reviewer.md Adds a reviewer guideline encouraging extraction of duplicated sibling code blocks.

@sellakumaran
sellakumaran enabled auto-merge (squash) April 3, 2026 18:06
@sellakumaran
sellakumaran merged commit c09e99c into main Apr 3, 2026
12 checks passed
@sellakumaran
sellakumaran deleted the users/sellak/blueprintScopes branch April 3, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants