= ({
const [value, setValue] = useState(defaultTeam);
- const updatedTeams = teams ? [...teams, defaultTeam] : [defaultTeam];
-
+ let updatedTeams;
+ if (userRole === "App User") {
+ // Non-Admin SSO users should only see their own team - they should not see "Default Team"
+ updatedTeams = teams;
+ } else {
+ updatedTeams = teams ? [...teams, defaultTeam] : [defaultTeam];
+ }
return (
Select Team
-
- If you belong to multiple teams, this setting controls which team is
- used by default when creating new API Keys.
-
-
- Default Team: If no team_id is set for a key, it will be grouped under here.
-
+ {userRole !== "App User" && (
+ <>
+
+ If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys.
+
+
+ Default Team: If no team_id is set for a key, it will be grouped under here.
+
+ >
+ )}
{updatedTeams && updatedTeams.length > 0 ? (