You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/my-website/docs/proxy/admin_ui_sso.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,23 @@ MICROSOFT_TENANT="5a39737
81
81
http://localhost:4000/sso/callback
82
82
```
83
83
84
+
**Using App Roles for User Permissions**
85
+
86
+
You can assign user roles directly from Entra ID using App Roles. LiteLLM will automatically read the app roles from the JWT token and assign the corresponding role to the user.
87
+
88
+
Supported roles:
89
+
- `proxy_admin` - Admin over the platform
90
+
- `proxy_admin_viewer` - Can login, view all keys, view all spend (read-only)
91
+
- `org_admin` - Admin over a specific organization
92
+
- `internal_user` - Can login, view/create/delete their own keys, view their spend
93
+
94
+
To set up app roles:
95
+
1. Navigate to your App Registration on https://portal.azure.com/
96
+
2. Go to "App roles" and create a new app role
97
+
3. Use one of the supported role names above (e.g., `proxy_admin`)
98
+
4. Assign users to these roles in your Enterprise Application
99
+
5. When users sign in via SSO, LiteLLM will automatically assign them the corresponding role
## 4. Using Entra ID App Roles for User Permissions
144
+
145
+
You can assign user roles directly from Entra ID using App Roles. LiteLLM will automatically read the app roles from the JWT token during SSO sign-in and assign the corresponding role to the user.
146
+
147
+
### 4.1 Supported Roles
148
+
149
+
LiteLLM supports the following app roles (case-insensitive):
150
+
151
+
- `proxy_admin`- Admin over the entire LiteLLM platform
152
+
- `proxy_admin_viewer`- Read-only admin access (can view all keys and spend)
153
+
- `org_admin`- Admin over a specific organization (can create teams and users within their org)
154
+
- `internal_user`- Standard user (can create/view/delete their own keys and view their own spend)
155
+
156
+
### 4.2 Create App Roles in Entra ID
157
+
158
+
1. Navigate to your App Registration on https://portal.azure.com/
0 commit comments