app/models/canvas_csv/add_new_users.rb
# Loads array of new active LDAP people/guests from campus Oracle view
Loads array of new active LDAP people/guests from campus Oracle view
Loads array of new active LDAP people / guests from campus Oracle view
def new_active_user_uids
      rows = EdoOracle::Bcourses.get_all_active_people_uids
      all_active_sis_user_uids = rows.to_set
      all_current_canvas_uids = []
      CSV.foreach(get_canvas_user_report_file, headers: :first_row) do |canvas_user|
        if (existing_ldap_uid = MaintainUsers.parse_login_id(canvas_user['login_id'])[:ldap_uid])
          all_current_canvas_uids << existing_ldap_uid.to_s
        end
      end
      all_active_sis_user_uids.subtract(all_current_canvas_uids).to_a
    end
def new_active_user_uids rows = EdoOracle :: Bcourses . get_all_active_people_uids all_active_sis_user_uids = rows . to_set all_current_canvas_uids = [ ] CSV . foreach ( get_canvas_user_report_file , headers : :first_row ) do | canvas_user | if ( existing_ldap_uid = MaintainUsers . parse_login_id ( canvas_user [ 'login_id' ] ) [ :ldap_uid ] ) all_current_canvas_uids << existing_ldap_uid . to_s end end all_active_sis_user_uids . subtract ( all_current_canvas_uids ) . to_a end
Loads array of new active LDAP people/guests from campus Oracle view
Loads array of new active LDAP people / guests from campus Oracle view