Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reference feedback] Required privileges are not mentioned in the doc #30544

Closed
c3p0-maif opened this issue Dec 19, 2024 · 4 comments
Closed
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad needs-triage This is a new issue that needs to be triaged to the appropriate team. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@c3p0-maif
Copy link

Type of issue

Missing information

Reference command name

az ad group ....

Feedback

When using the command az ad group show -g groupName we can have an exception :

Insufficient privileges to complete the operation.

In the doc, no sign of required privileges are mentioned.

Page URL

https://learn.microsoft.com/fr-fr/cli/azure/ad/group?view=azure-cli-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/ad/group.yml

Author

@dbradish-microsoft

Document Id

0c7138d1-9849-0b71-8e76-22d0116ff663

@c3p0-maif c3p0-maif added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 19, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 19, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Graph az ad labels Dec 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 19, 2024
@yonzhan yonzhan added this to the Backlog milestone Dec 20, 2024
@jiasli
Copy link
Member

jiasli commented Dec 23, 2024

You may run Azure CLI commands with --debug. The log shows the underlying HTTP requests.

Specifically, az ad group show internally calls Get group Microsoft Graph API.

As a REST API can change its design and behavior, it is difficult for CLI's document to keep synchronized with the REST API.

@jiasli jiasli changed the title [Reference feedback]: Required privileges not specified [Reference feedback] Required privileges are not mentioned in the doc Dec 23, 2024
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

The CLI reference should list what permissions are required to run each command. To be honest, I'm surprised this wasn't considered a bare minimum essential requirement for the documentation.

Reference:

@jiasli
Copy link
Member

jiasli commented Dec 23, 2024

Duplicate of #22362

@jiasli jiasli marked this as a duplicate of #22362 Dec 23, 2024
@jiasli jiasli closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad needs-triage This is a new issue that needs to be triaged to the appropriate team. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants