From a6d4c5a3b1e644d2ac08dcaaf7f2000d3e22d5ba Mon Sep 17 00:00:00 2001 From: Dhaval Rajpara Date: Wed, 21 Oct 2026 17:45:34 +0530 Subject: [PATCH] RANGER-5853 : Admin unable to assign groups during user creation. --- .../UserGroupRoleListing/users_details/UserForm.jsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx b/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx index cede7266ba..082c1e67b7 100644 --- a/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx +++ b/security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserForm.jsx @@ -37,7 +37,12 @@ import { UserTypes } from "Utils/XAEnums"; import { toast } from "react-toastify"; -import { InfoIcon, getUserAccessRoleList, isSystemAdmin, serverError } from "Utils/XAUtils"; +import { + InfoIcon, + getUserAccessRoleList, + isSystemAdmin, + serverError +} from "Utils/XAUtils"; import { getUserProfile, setUserProfile } from "Utils/appState"; import { cloneDeep, has, isEmpty, isUndefined } from "lodash"; import { SyncSourceDetails } from "Views/UserGroupRoleListing/SyncSourceDetails"; @@ -290,7 +295,7 @@ function UserForm(props) { }; const disabledGroupField = () => { - return !(isSystemAdmin() && isEditView && isInternalUser) + return isEditView ? !(isSystemAdmin() && isInternalUser) : false; }; const userRoleListData = () => { @@ -478,7 +483,8 @@ function UserForm(props) { position="right" message={ isSpiffeAsUsernameEnabled() - ? RegexMessage.MESSAGE.userNameValidationMsgWithSpiffe + ? RegexMessage.MESSAGE + .userNameValidationMsgWithSpiffe : RegexMessage.MESSAGE.userNameValidationMsg } />