Skip to content

Warn in ucode setup when an MPS isn't usable by all workspace users - #303

Merged
AarushiShah-db merged 3 commits into
mainfrom
warn-mps-access-on-setup
Aug 10, 2026
Merged

Warn in ucode setup when an MPS isn't usable by all workspace users#303
AarushiShah-db merged 3 commits into
mainfrom
warn-mps-access-on-setup

Conversation

@AarushiShah-db

Copy link
Copy Markdown
Collaborator

An admin can pick a Model Provider Service whose schema isn't granted to the workspace, and developers who later pull that managed config hit "User does not have USE_SCHEMA on Schema ." at launch. After the admin selects an MPS, check whether the account users group has USE_SCHEMA on its schema (via UC effective-permissions, so a catalog-level grant counts) and print a non-blocking warning if not.

It only warns: access may instead come from a team group the check can't see, and an inconclusive check (API unreachable) stays silent rather than crying wolf.

Also isolate ENABLE_MANAGED_AGENT_CONFIG in the test fixture so the dev's shell env can't change CLI behavior mid-test.

Co-authored-by: Isaac

An admin can pick a Model Provider Service whose schema isn't granted to the
workspace, and developers who later pull that managed config hit "User does not
have USE_SCHEMA on Schema <catalog>.<schema>" at launch. After the admin selects
an MPS, check whether the `account users` group has USE_SCHEMA on its schema
(via UC effective-permissions, so a catalog-level grant counts) and print a
non-blocking warning if not.

It only warns: access may instead come from a team group the check can't see,
and an inconclusive check (API unreachable) stays silent rather than crying
wolf.

Also isolate ENABLE_MANAGED_AGENT_CONFIG in the test fixture so the dev's shell
env can't change CLI behavior mid-test.

Co-authored-by: Isaac
@tt-le
tt-le self-requested a review August 10, 2026 15:41
@AarushiShah-db
AarushiShah-db enabled auto-merge (squash) August 10, 2026 16:04
@AarushiShah-db
AarushiShah-db enabled auto-merge (squash) August 10, 2026 16:07
@AarushiShah-db
AarushiShah-db merged commit 3b6f092 into main Aug 10, 2026
2 checks passed
@AarushiShah-db
AarushiShah-db deleted the warn-mps-access-on-setup branch August 10, 2026 16:15
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.

2 participants