Add Permissions sections to entra user commands#7155
Conversation
9edbedc to
1de53b9
Compare
|
Hi @MartinM85, this is ready for review when you have time. |
|
Thanks, we'll try to review it ASAP. |
There was a problem hiding this comment.
Pull request overview
Adds the required Permissions sections to the entra user command documentation to align with the repo’s documentation standards (per #6952), and updates contributor attribution.
Changes:
- Added a new Permissions section (placed before Examples) to the docs for
entra user add/get/hibp/list/remove/set, documenting minimal delegated and application permissions (or no Graph permissions for HIBP). - Updated docs to use Docusaurus
<Tabs>/<TabItem>where needed for delegated vs application permission presentation. - Added the contributor to
package.jsonand the docs team page.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds the contributor to the package metadata contributors list. |
| docs/docs/cmd/entra/user/user-add.mdx | Adds Permissions section for entra user add (delegated/app). |
| docs/docs/cmd/entra/user/user-get.mdx | Adds Permissions section for entra user get (delegated/app). |
| docs/docs/cmd/entra/user/user-hibp.mdx | Adds Permissions section clarifying HIBP uses no Microsoft Graph permissions. |
| docs/docs/cmd/entra/user/user-list.mdx | Adds Permissions section for entra user list (delegated/app). |
| docs/docs/cmd/entra/user/user-remove.mdx | Adds Permissions section for entra user remove (delegated/app). |
| docs/docs/cmd/entra/user/user-set.mdx | Adds Permissions section for entra user set (delegated/app). |
| docs/docs/about/team.mdx | Adds the contributor to the public team/contributors list in docs. |
milanholemans
left a comment
There was a problem hiding this comment.
Nice work @AlejandroGispert, I think we should make a few changes before we merge it. Could you have a look at them, please? Also, check the feedback from Copilot.
0a9c2aa to
4881db8
Compare
Updates team member list by adding Alejandro Gispert alphabetically Corrects capitalization of "Global administrator" Removes redundant information about user retrieval methods in user-get documentation for clarity Removes redundant tab structure in user-hibp documentation for improved clarity Clarifies permissions section in user-hibp documentation Enhances table formatting
4881db8 to
179d2d9
Compare
|
Hi @milanholemans, I have implemented the modifications you suggested. Please take another look when you have a chance. |
|
@AlejandroGispert nice! When ready, you can mark the PR as ready for review. |
|
@milanholemans done |
milanholemans
left a comment
There was a problem hiding this comment.
Almost there @AlejandroGispert, let's do some final changes.
…ical order. Enhances documentation for the user-add command by moving and clarifying the permissions requirements.
|
Hi @milanholemans it should be correct now |
milanholemans
left a comment
There was a problem hiding this comment.
Nothing more to add!
Author: Alejandro Gispert
Third-time contributor to cli-microsoft365
## Summary
Closes #6952
Adds Permissions sections to all six
entra usercommands (add, get, hibp, list, remove, set) per #6952. Documents the minimal delegated and application permissions required to run each command.Commands updated
entra user addentra user getentra user listentra user removeentra user setentra user hibpConventions
entra user hibpdocumented as using Have I Been Pwned API (no Graph permissions)Permission rationale
Dev Proxy reports
User.ReadBasic.Allas minimal for basicget/listusage. We documentedUser.Read.Allinstead to align with the writing-the-docs requirement that permissions support any combination of options.User.ReadBasic.Allcan fail for--withManagerand custom--properties;User.Read.Allcovers all documented scenarios.Additional changes