Adds permissions section to policy and resource namespace documentation#7140
Adds permissions section to policy and resource namespace documentation#7140
Conversation
|
Hi @AlejandroGispert, thanks for this PR! We'll try to review it ASAP. |
MartinM85
left a comment
There was a problem hiding this comment.
Thank you for the contribution @AlejandroGispert. Great job 👍
I have one major thing. According to the ticket, you should add the permissions section to m365 entra roleassignment add and you have added the permissions for m365 entra app role commands.
Please revert the changes in the app-role-add.mdx, app-role-list.mdx and app-role-remove.mdx files.
The m365 entra roleassignment add command already contains the permissions section, so no changes are required in this file.
|
|
Hi @MartinM85, |
Hi @AlejandroGispert, reverting the change in the commit c729a39 should be fine. During the merge we squash the commits. |
5153eee to
d398b4a
Compare
…on. Closes pnp#6949 Made-with: Cursor
|
Hi @MartinM85, the app-role changes have been reverted. The PR now only includes the Permissions sections for policy-list and resourcenamespace-list, all squashed into a single commit. Thanks. |
There was a problem hiding this comment.
Pull request overview
Adds minimal Microsoft Graph permissions documentation to selected Entra command reference pages, aligning with the ongoing docs standardization effort for permissions sections.
Changes:
- Added a Permissions section (Delegated + Application) to
entra policy list. - Added a Permissions section (Delegated + Application) to
entra resourcenamespace list.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/docs/cmd/entra/policy/policy-list.mdx | Documents required Microsoft Graph permission (Policy.Read.All) for entra policy list. |
| docs/docs/cmd/entra/resourcenamespace/resourcenamespace-list.mdx | Documents required Microsoft Graph permission (RoleManagement.Read.Directory) for entra resourcenamespace list. |
MartinM85
left a comment
There was a problem hiding this comment.
Approved. Thank you for the contribution @AlejandroGispert 🚀
I will merge it later.
Closes #6949
Author: Alejandro Gispert
First-time contributor to cli-microsoft365
Summary
Adds the Permissions section to the documentation for
entra policy listandentra resourcenamespace list, and confirms the existing Permissions section forentra roleassignment addis correct.Changes
entra policy list
docs/docs/cmd/entra/policy/policy-list.mdxPolicy.Read.All(Delegated and Application)/v1.0/policies/*endpoints (authorizationPolicy, conditionalAccessPolicies, tokenLifetimePolicies, etc.). The Microsoft Graph permissions reference specifiesPolicy.Read.Allfor these policy read operations.entra resourcenamespace list
docs/docs/cmd/entra/resourcenamespace/resourcenamespace-list.mdxRoleManagement.Read.Directory(Delegated and Application)GET /beta/roleManagement/directory/resourceNamespaces. Verified by running the command with an app registration that has this permission.entra roleassignment add
docs/docs/cmd/entra/roleassignment/roleassignment-add.mdxRoleManagement.ReadWrite.Directoryfor both delegated and application access.Documentation standards
roleassignment-add,plan-list)Related
Addresses the Permissions documentation effort for Entra commands. Makes it easier to run the CLI with custom app registrations and application permissions by documenting the minimal required permissions.