private void setUserGroups(String user, String[] groups) {
      userToGroupsMapping.put(user, Arrays.asList(groups));
    }
Returns the result of {@code UserGroupInformation.isSecurityEnabled()}.
hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java