Reputation: 1
I have seen solutions for getting back all groups a user belongs to, however I cant find a solution that returns them back with their respective display names.
I know that you can iterate over each group and get additional info such as display name, however I am concerned about the performance of iterating queries over a large array of groups. If i am getting back only the Alias when fetching groups, and I have 120 groups return for a user, I dont want to have to make an additional 120 queries in a loop for additional properties such as display name.
Is there an efficient way to take a username, and from that return back a list of all groups the user is in by display name without having to perform additional iterative queries?
Looking for a solution in c# .net
Upvotes: 0
Views: 269