hunk.code_window:         user.getPolicies().addAll(Set.of(manageUserPolicy, manageUserOrgPolicy));
  
hunk.labels: keep replace keep
hunk.after_edit:         Map<String, Policy> userPolicies = policyUtils.generatePolicyFromPermission(aclPermissions, user);
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java
hunk.type: replace
file: package com.appsmith.external.models;
  
  import lombok.AllArgsConstructor;
  import lombok.Getter;
  import lombok.NoArgsConstructor;
  import lombok.Setter;
  import lombok.ToString;
  
  @Getter
  @Setter
  @ToString
  @NoArgsConstructor
  @AllArgsConstructor
  public class AuthenticationDTO {
  
      public enum Type {
          SCRAM_SHA_1, SCRAM_SHA_256, MONGODB_CR, USERNAME_PASSWORD
      }
  
      Type authType;
  
      String username;
  
      String password;
  
      String databaseName;
  
  }
  