diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/DAO/GroupDAO.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/DAO/GroupDAO.java index 9d46a2586..9ba867766 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/DAO/GroupDAO.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/DAO/GroupDAO.java @@ -390,7 +390,7 @@ public String getGroupNameById(int tenantId, String id) throws IdentitySCIMExcep } finally { IdentityDatabaseUtil.closeAllConnections(connection, rSet, prepStmt); } - // Verify whether the roleName is not empty and a group name + // Verify whether the roleName is not empty, and it's not contain any prefix Application/Internal if (StringUtils.isNotEmpty(roleName) && !SCIMCommonUtils.isHybridRole(roleName)) { return SCIMCommonUtils.getPrimaryFreeGroupName(roleName); }