Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: prevent bulk deletion on frontend if scim is enabled

Scott Wilsone15086edc094
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
index beaad32926..d3f6d6e71d 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx
@@ -171,7 +171,11 @@ export const OrgMembersSection = () => {
I={OrgPermissionActions.Delete}
a={OrgPermissionSubjects.Member}
renderTooltip
- allowedLabel="Delete"
+ allowedLabel={
+ currentOrg?.scimEnabled
+ ? "You cannot manage users from Infisical when org-level auth is enforced for your organization"
+ : undefined
+ }
>
{(isAllowed) => (
<Button
@@ -188,7 +192,7 @@ export const OrgMembersSection = () => {
handlePopUpOpen("removeMembers", { selectedOrgMemberships });
}}
- isDisabled={!isAllowed}
+ isDisabled={!isAllowed || currentOrg?.scimEnabled}
size="xs"
>
Delete