diff --git a/client/src/components/dynamic-groups/variable-selector.tsx b/client/src/components/dynamic-groups/variable-selector.tsx index ea7cff6..1927c93 100644 --- a/client/src/components/dynamic-groups/variable-selector.tsx +++ b/client/src/components/dynamic-groups/variable-selector.tsx @@ -88,8 +88,8 @@ const VariableSelector: React.FC = ({ onSelectVariable, c const formattedVar = `OU={${attribute}}`; onSelectVariable(formattedVar); } else { - // Format for group name with CN prefix - const formattedVar = `CN={${attribute}}`; + // For group name variables, don't add CN= prefix, just the variable + const formattedVar = `{${attribute}}`; onSelectVariable(formattedVar); } setIsOpen(false); @@ -110,8 +110,8 @@ const VariableSelector: React.FC = ({ onSelectVariable, c const formattedVar = `OU={${customAttribute.trim()}}`; onSelectVariable(formattedVar); } else { - // Format custom attribute for group name with CN prefix - const formattedVar = `CN={${customAttribute.trim()}}`; + // For group name variables, don't add CN= prefix, just the variable + const formattedVar = `{${customAttribute.trim()}}`; onSelectVariable(formattedVar); } setCustomAttribute('');