diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java index 05d0a3925730..f51b448ddf61 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/teams/UserResource.java @@ -2188,7 +2188,6 @@ && userHasRelationshipWithAnyBot(original, bot)) { original.getAuthenticationMechanism()); user.setRoles(original.getRoles()); } - // TODO remove this -> Still valid TODO? addAuthMechanismToBot(user, create, uriInfo); addRolesToBot(user, uriInfo); PutResponse response = @@ -2237,7 +2236,6 @@ private List retrieveBotRelationshipsFor return repository.findToRecords(bot.getId(), Entity.BOT, Relationship.CONTAINS, Entity.USER); } - // TODO remove this -> still valid TODO? private void addAuthMechanismToBot(User user, @Valid CreateUser create, UriInfo uriInfo) { if (!Boolean.TRUE.equals(user.getIsBot())) { throw new IllegalArgumentException(