Forum Discussion
AD Group Membership Flatten Users list of nested groups
I am working on an audit of all accounts that have admin access on our servers. We have a power shell script that returns all Members of the local admin group for every server we have. I have an AD connection that gets all AD groups with members and I have connected them.
Here is where it gets interesting.
For simplification I have Server A in the local admin group it has”
User 1
User 2
AD Group 1
AD Group 1 members
User A
User B
AD Group 2
AD Group 2 members
User 3
User 4
I want to give a flat users list saying here are the local admins of Server A:
User 1
User 2
User A
User B
User 3
User 4
2 Replies
- v-jingzhang
Community Support
Hi roygervase
I have no access to any AD, so I'm curious about what the table structure looks like currently. Do all groups and their members exist in the same table? Can you show a sample table with some dummy data?
Best Regards,
Community Support Team _ Jing- roygervaseFrequent Visitor
I have a data set that has all of the groups with the members and object category
AD Group 1 members
User A -Person
User B - Person
AD Group 2 - Group