From 3b8f651eaf070640d4f5b467dc1a5f1d2ddc2a2c Mon Sep 17 00:00:00 2001 From: Ryan Crabbe Date: Tue, 14 Apr 2026 15:45:35 -0700 Subject: [PATCH] fix: default invite user modal global role to least-privilege Pre-select "Internal User Viewer" in the Global Proxy Role dropdown on both the standalone and embedded Invite User forms so admins don't have to remember to pick a role, and the default lands on the least privileged option rather than silently posting an undefined role. --- .../src/components/CreateUserButton.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsx index fc29887a5d..b65caec26d 100644 --- a/ui/litellm-dashboard/src/components/CreateUserButton.tsx +++ b/ui/litellm-dashboard/src/components/CreateUserButton.tsx @@ -175,7 +175,14 @@ export const CreateUserButton: React.FC = ({ // Modify the return statement to handle embedded mode if (isEmbedded) { return ( -
+ = ({ className="mb-4" /> - +