Skip to content

Commit

Permalink
disable AD affiliations check
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroldwong committed Jun 28, 2024
1 parent 5b31681 commit d538bd8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/active_directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d538bd8

Please sign in to comment.