Skip to content

Commit

Permalink
Add isExistingGroup method call
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshiAthapaththu committed Aug 18, 2023
1 parent cc854d6 commit 7a98a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ public Group createGroup(Group group, Map<String, Boolean> requiredAttributes)
}
group.setDisplayName(roleNameWithDomain);
//check if the group already exists
if (carbonUM.isExistingRole(group.getDisplayName(), false)) {
if (carbonUM.isExistingGroup(group.getDisplayName())) {
String error = "Group with name: " + group.getDisplayName() + " already exists in the system.";
throw new ConflictException(error);
}
Expand Down

0 comments on commit 7a98a03

Please sign in to comment.