From d538bd85595b04ee2b140cb40fdbf2344c82e849 Mon Sep 17 00:00:00 2001 From: Jarold Wong Date: Fri, 28 Jun 2024 12:58:58 -0700 Subject: [PATCH] disable AD affiliations check --- lib/active_directory.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/active_directory.rb b/lib/active_directory.rb index a6e7841f..73b8fabe 100644 --- a/lib/active_directory.rb +++ b/lib/active_directory.rb @@ -107,10 +107,11 @@ def ActiveDirectory.create_or_update_person(query) if ad_user.nil? puts "Could not find #{query} in Active Directory. Skipping..." return nil - elsif ad_user[:extensionattribute8].empty? - # ignore if no UCD Affiliations (extensionattribute8), likely separated - puts "Found #{query} in Active Directory with no affiliations. Skipping..." - return nil + # may not be needed after initial DocuSign import + # elsif ad_user[:extensionattribute8].empty? + # # ignore if no UCD Affiliations (extensionattribute8), likely separated + # puts "Found #{query} in Active Directory with no affiliations. Skipping..." + # return nil else loginid = ad_user.samaccountname.first p = Person.find_by(loginid: loginid)