Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: default invite user modal global role to least-privilege

Ryan Crabbe3b8f651eaf07
diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
index fc29887a5da..b65caec26d0 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<CreateuserProps> = ({
// Modify the return statement to handle embedded mode
if (isEmbedded) {
return (
- <Form form={form} onFinish={handleCreate} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }} labelAlign="left">
+ <Form
+ form={form}
+ onFinish={handleCreate}
+ labelCol={{ span: 8 }}
+ wrapperCol={{ span: 16 }}
+ labelAlign="left"
+ initialValues={{ user_role: "internal_user_viewer" }}
+ >
<Alert
message="Email invitations"
description={
@@ -257,7 +264,14 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
className="mb-4"
/>
</Space>
- <Form form={form} onFinish={handleCreate} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }} labelAlign="left">
+ <Form
+ form={form}
+ onFinish={handleCreate}
+ labelCol={{ span: 8 }}
+ wrapperCol={{ span: 16 }}
+ labelAlign="left"
+ initialValues={{ user_role: "internal_user_viewer" }}
+ >
<Form.Item label="User Email" name="user_email">
<Input />
</Form.Item>