Class UserIdentity.Builder

  • Enclosing class:
    UserIdentity

    public static class UserIdentity.Builder
    extends java.lang.Object
    • Method Detail

      • setGroups

        public UserIdentity.Builder setGroups​(java.util.Set<java.lang.String> groups)
        Set group membership of the user. This method should only be used when synchronization of groups should be done.
        • When groups are not empty, group membership is synchronized when user logs in :
          • User won't belong anymore to a group that is not in the list (even the default group defined in 'sonar-users')
          • User will belong only to groups that exist in SonarQube
          • Groups that don't exist in SonarQube are silently ignored
        • When groups are empty, user won't belong to any group
        Throws:
        java.lang.NullPointerException - when groups is null
        Since:
        5.5