Skip to content

Conversation

URAYUSHJAIN
Copy link

@URAYUSHJAIN URAYUSHJAIN commented Oct 1, 2025

- Added Permissions section to organization-list.mdx
- Documents Organization.Read.All and User.Read permissions for both delegated and application auth
- Closes pnp#6947
@milanholemans
Copy link
Contributor

Hi @URAYUSHJAIN , the issue specified 2 commands, but this PR contains only 1 command. Could you add the set command to the PR as well please?

@milanholemans milanholemans marked this pull request as draft October 1, 2025 23:53
The organization-set command already has the Permissions section properly documented in the main branch with Organization.ReadWrite.All for both delegated and application permissions.

Both commands in issue pnp#6947 are now covered:
- organization-list: Added permissions (new)
- organization-set: Already had permissions (confirmed)
@URAYUSHJAIN
Copy link
Author

@Jwaegebaert sir

Good catch! I've reviewed both commands:

organization-list: Added permissions in this PR
organization-set: Already has permissions in main branch (Organization.ReadWrite.All)

Added a commit to confirm I've reviewed both. Both commands in #6947 are now covered!

@milanholemans milanholemans marked this pull request as ready for review October 2, 2025 00:00
Copy link
Contributor

@Jwaegebaert Jwaegebaert left a comment

Choose a reason for hiding this comment

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

Great start @URAYUSHJAIN! I've left a few remarks you can take a look at.


| Resource | Permissions |
|-----------------|--------------------------------------------------|
| Microsoft Graph | Organization.Read.All, User.Read |
Copy link
Contributor

Choose a reason for hiding this comment

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

Application context can't contain "user.read" permissions

Suggested change
| Microsoft Graph | Organization.Read.All, User.Read |
| Microsoft Graph | Organization.Read.All |

@Jwaegebaert Jwaegebaert self-assigned this Oct 2, 2025
@URAYUSHJAIN
Copy link
Author

@Jwaegebaert plz merge

@Jwaegebaert
Copy link
Contributor

First, take a look at the remarks I've left before we can merge these changes @URAYUSHJAIN

Comment on lines 25 to 27

:::info

Copy link
Contributor

@Jwaegebaert Jwaegebaert Oct 2, 2025

Choose a reason for hiding this comment

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

@URAYUSHJAIN, One more note here. Let's move this admonition below the permissions tab.

Copy link
Author

Choose a reason for hiding this comment

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

@Jwaegebaert sir done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimal permissions for 'entra organization' commands
3 participants