Discovery of where AD groups are being used
retained text
I have received such task during a recent interview for a job. They wanted to know how would i cleanup messy AD environment and figure out which AD groups are safe to delete, without absolutely no disruption to anything (also saying that some groups might be empty, but still used somewhere). I am not a primarily and AD admin, although i have dealt with it a lot during my career of Windows/M365/whatever admin as a generalist. I have tried to avoid using AI and listed a few things that came to my mind like exporting a list of all groups and creating a registry with all the details (OU, GUID, members, etc.) and based on some of this information i could go to team leads and ask if they are still using the groups. I also listed checking ACLs on file shares, searching through Git repositories and M365 for hits. In the end it was not enough for them. After that i have tried Gemini and it didn't come up with anything outstanding that i have missed. Recently on my current job i have received a somewhat similar inquiry from one team lead. "Hey, this is a list of groups, can you tell me which ones are used?". As if there is some magical property on a group that says "hey, i am being used by this thing in your infra". I have tried AI again, but nothing really clever came up. In the end it was enough for them that i have checked the descriptions and then file shares that it was pointing to and confirmed groups are set in permissions on those folders. I am thinking, ok, so lets say some system has AD group in its configuration. User tries to sign in to that system. The system does an LDAP query for that user and gets its group membership. But does it mean that AD is seeing this as a usage, registers a clear event of that somewhere? Do you know of any better way of determining that? Maybe this is obvious for senior AD admins. But i am puzzled by this.
document fetched 2026-09-28 00:34 · canonical https://reddit.com/r/sysadmin/comments/1wrhgcz/discovery_of_where_ad_groups_are_being_used