• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

How to get a lis of what users/groups have access to all of my Delivery Groups with ControlUp

Posted on March 14, 2023

A user asked for a script that would quickly list the users and groups that have access to all of their delivery groups. It was suggested to use the Get-BrokerAccessPolicyRule command with no parameters, however included groups needed to be resolved to get a list of users. A CU_ProcessADObject script was provided to recursively process underlying groups.


Read the entire ‘Quickly List Users with Access to Delivery Groups’ thread below:

Trying to get a list of what users/groups have access to all of my delivery groups. I have been using this script but I have to do it seperately for each delivery group because I have to specify each DG. Anyone have another script that might be quicker? Get-BrokerAccessPolicyRule -Name GBS_AG | select -ExpandProperty IncludedUsers | Select-Object Name


You can call get-BrokerAccessPolicyRule with no parameters


My problem when I did this for a customer is that it includes groups.. which an be nested.

So to get a list of USERS you need to resolve group membership. Which is quite the efforti tried that but it truncates the includeduser list


“`$groups = Get-BrokerAccessPolicyRule -AdminAddress amdc-xdc01

foreach($group in $groups)

{

write-host "$(get-date) processing $($group.name)"

foreach($assignedEntity in $group.includedusers)

{

write-host "$(get-date) processing entity $($assignedEntity.SID)"

$ADObject = Get-ADObject -Filter "objectsid -eq `"$($assignedEntity.SID)`"" -Properties Member,objectClass -ErrorAction SilentlyContinue -WarningAction SilentlyContinue

CU_ProcessADObject -localObject $ADObject

}

}“`


CU_ProcessADObject

is a function that determines if the object is a group, and if so, recursively processes the underlying groupsThank you kind sir!

Continue reading and comment on the thread ‘How to get a lis of what users/groups have access to all of my Delivery Groups with ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Delivery Groups, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..