Skip to content

Adds 'entra agent list' command. Closes #7255#7451

Open
nanddeepn wants to merge 3 commits into
pnp:mainfrom
nanddeepn:issue-7255
Open

Adds 'entra agent list' command. Closes #7255#7451
nanddeepn wants to merge 3 commits into
pnp:mainfrom
nanddeepn:issue-7255

Conversation

@nanddeepn

Copy link
Copy Markdown
Contributor

Adds entra agent list command. Closes #7255

Copilot AI review requested due to automatic review settings July 14, 2026 06:07

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 adds a new Microsoft Entra command (m365 entra agent list) to retrieve agent users via Microsoft Graph, along with supporting tests and documentation updates.

Changes:

  • Introduces the entra agent list command implementation with optional $select support via --properties.
  • Adds unit tests validating successful retrieval, property selection, and error handling.
  • Updates command constants, docs sidebar navigation, ESLint dictionary, and Graph scope catalog to include the new command and permission.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/m365/entra/commands/agent/agent-list.ts Implements the new Graph-backed entra agent list command with optional $select query building
src/m365/entra/commands/agent/agent-list.spec.ts Adds tests for listing agents, selecting properties, and error handling
src/m365/entra/commands.ts Registers the AGENT_LIST command name constant
src/config.ts Adds User.ReadBasic.All to the global scopes catalog
eslint.config.mjs Adds agent to the ESLint dictionary
docs/src/config/sidebars.ts Adds the new command to the Entra docs sidebar
docs/docs/cmd/entra/agent/agent-list.mdx Adds reference documentation for entra agent list

Comment thread src/m365/entra/commands/agent/agent-list.ts
Comment thread docs/docs/cmd/entra/agent/agent-list.mdx Outdated
nanddeepn and others added 2 commits July 14, 2026 11:43
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@milanholemans

Copy link
Copy Markdown
Contributor

Thanks, we'll review it soon!

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.

New command: entra agent list

3 participants