From b8ed444d3ff038d30757995eeebc9b8819e2c9d0 Mon Sep 17 00:00:00 2001 From: Sachin Argade Date: Mon, 27 May 2024 11:17:04 +0530 Subject: [PATCH] Handle DIM user based on role --- .../tractusx/autosetup/manager/PortalIntegrationManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/eclipse/tractusx/autosetup/manager/PortalIntegrationManager.java b/src/main/java/org/eclipse/tractusx/autosetup/manager/PortalIntegrationManager.java index 19ee39e1..3ce7c7fd 100644 --- a/src/main/java/org/eclipse/tractusx/autosetup/manager/PortalIntegrationManager.java +++ b/src/main/java/org/eclipse/tractusx/autosetup/manager/PortalIntegrationManager.java @@ -186,8 +186,7 @@ private void handlePortalServiceExcutionResponse(Map inputData, technicalUserData.forEach(technicalUser -> { TechnicalUserDetails technicalUserDetails = technicalUser.getTechnicalUserDetails(); - if (technicalUser.getName().contains("dim") - && technicalUser.getPermissions().contains("Identity Wallet Management")) { + if (technicalUser.getPermissions().contains("Identity Wallet Management")) { inputData.put("dimClientId", technicalUserDetails.getClientId()); inputData.put("dimClientSecret", technicalUserDetails.getSecret()); } else {