Adds 'entra agent list' command. Closes #7255#7451
Open
nanddeepn wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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 listcommand implementation with optional$selectsupport 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 |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
|
Thanks, we'll review it soon! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
entra agent listcommand. Closes #7255