Search name can also be the first name, last name, username or full name. Therefore this can be changed as one of below;
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXUBLKlG3zKl8d7q9_eh8Bt1L_9ZglCa47M1csb-jzPknrUK_HjqUb1sFSZYxk9yqrtg4AV0sDQX2WZiOrx0q6LUWQEOpHy7hoGBVlSdA_3-GUtDqrYi3fDEOQ4JdSZy5_hDta1Fb6rYXb/s400/Call+AD+member1.jpg)
A name can be searched in AD Groups. I have used the domain user name (SamAccountName) to identify a name in AD group which is unique and more accurate. Since I had to bring up search results as user's full name (Display name) ":" domain user name format, I then had to filter out the domain user name into a string variable as below. (Get the names after ":" character).
To search in AD groups FindByIdentity has been used as below;
No comments:
Post a Comment