Getting values from AD in customer portal

In customer portal, while the ticket is not yet created, but is just being filled in the values in the fields, we need to have a user picker field, so that when choosing a user will make another field, that collects all our AD groups (multi selection checkboxes) to auto check all the groups that the user is member of in AD. Is this possible to automate?
Thanks in advance!

You use the Scriptrunner Behaviors module to achieve such customizations. Behaviors is effectively just executing Javascript on the front-end so conceivably you could also just write the Javascript.