Skip to content

Fix management group fetch permission error#79

Merged
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4181/allow-missing-management-groups
Nov 4, 2025
Merged

Fix management group fetch permission error#79
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4181/allow-missing-management-groups

Conversation

@benjjs
Copy link
Copy Markdown
Collaborator

@benjjs benjjs commented Nov 4, 2025

Motivation

We were seeing some users get user actionable errors due to lacking permissions to see management groups. This shouldn't actually be blocking, we already have a good interface to communicate that they lack permissions to see any management groups if that was something they were expecting,

Summary

When I switched the quickstart script to use AzCmd, we started getting the more informative AccessError when the user lacked this permission, but we were still catching only RuntimeError. I've simply swapped them out. There is some argument to allow both error types or even all, but AccessError is the only one we actually expect. If we are seeing other error types here it probably does mean that something is actually wrong.

Testing

Connect onboarding flow to local shell, spoof an access error in list management groups, check the UI. No error, and when we click on the management groups tab we see the expected result
Screenshot 2025-11-04 at 12 22 14 PM

@benjjs benjjs requested review from agulen and gpalmz November 4, 2025 17:23
@benjjs benjjs requested a review from a team as a code owner November 4, 2025 17:23
@benjjs benjjs force-pushed the benjamin.johnsonstaub/azints-4181/allow-missing-management-groups branch from 1694274 to 8809ecd Compare November 4, 2025 21:13
Base automatically changed from benjamin.johnsonstaub/azints-4124/guard-against-manual-copy-script to main November 4, 2025 21:26
@benjjs benjjs force-pushed the benjamin.johnsonstaub/azints-4181/allow-missing-management-groups branch from 8809ecd to 143cc7a Compare November 4, 2025 21:39
@benjjs benjjs merged commit a6ebbf7 into main Nov 4, 2025
2 checks passed
@benjjs benjjs deleted the benjamin.johnsonstaub/azints-4181/allow-missing-management-groups branch November 4, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants