How to get the details of users present in specific OU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 05:59 AM
Hi is there a way we can get the count of the users in the specific OU in AD. can we get that data to servicenow by using flow and powershell script or ldap?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 11:21 PM
You Can use LDAP query using a mid server to get the data..
few links can help you
https://www.netwrix.com/how_to_get_all_users_from_a_specific_ou.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 12:54 AM
You can use LDAP integration to pull up data from your AD into servicenow and then query the users as per the Source which will contain the OU information to know how many users exist in a particular OU: