With my school's active directory we use a user creator system, which imports data that has been exported out of our student management system, and creates the users AD account, Password, security groups for their class enrolment and other AD user fields.
The intent was to use the security group to create smart mobile device groups to allocate apps based on their their grade security group from AD. To remove the need to manually group our students in JAMF.
As there doesn't appear to be an option to create a smart group from AD security groups or OU's, I was able to leverage the AD LDAP mapping field Department which was also populated with the students grade, with our AD importing program.
The catch was we were using the department field of AD for the details, however JAMF would not let us populate the same department reference data from AD for the department LDAP mapping field. I believe the departments field can't be used because this is due to the departments section of JAMF.
Instead we put the department field into the Room field, and then created smart groups to group the students based on the data allocated to the Room option which was collected from our users AD department mapping.
For those capable of doing the same with their users AD information, I hope this helps.