Just curious if anyone has ever done any autocomplete with Active Directory. I have a request for a form with a text box, where they want the user to begin typing someone’s given name and auto complete suggests best match to username (or vice versa, they haven’t made up their minds). I could pull in a Get-User -Filter* when the dashboard is initialized, but that seems to be slow. Just curious if anyone has done anything similar in another manner.
I use the Get-User -filter * like you’ve mentioned for a stepper that I have for disabling user accounts but our directory base isn’t that large so I don’t really see a hit on performance.
You could have a schedule job that runs which outputs the $users to an array and call that from your dashboard?
You could cache your userbase using the PSUCache on a schedule. That would make the information relatively up to date (I mean… how frequently does your AD info change anyway?) and readily accessible.