I've an Authentication source that returns the number of Clearpass Guest devices that have been registered by a particular sponsor name
select COUNT(*) AS sponsor_count FROM tips_guest_users WHERE ((guest_type = 'DEVICE') AND (sponsor_name = '%{Authentication:Username}'))
I'd like to add a condition that only counts the number of devices that have airgroup_enable set to 1.
Tried adding an additional AND to the above
select COUNT(*) AS sponsor_count FROM tips_guest_users WHERE ((guest_type = 'DEVICE') AND (sponsor_name = '%{Authentication:Username}') AND ( airgroup_enable = 1))
But clearpas complains saying column airgroup_renable doesn't exist in that table. Anyone know what the correct SQL might be?
Rgds
Alex