Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
roygervase
Frequent Visitor

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 2
v-jingzhang
Community Support
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

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.