Hi there,
At my previous employment I built a script in Powershell that would go through certain OU, pull out user information, create a custom PS object that bound the user information with some other ID that were read into the script also to form a larger file that was then use to update data in a different system. Basically it pulled in based on email an ID for a user from system A, bound that to AD data from on prem AD then via an API call outbound updated system C with user information based on the ID.
Where I am now has a similar issue where they are doing a heap of manual exports from two systems to create a CSV to import into a third system. I know I could leverage the same process but I am not sure how to translate the previous calls to AD on prem I used into how to pull data from Azure AD.
$staff = foreach ($OU in $staff_ous) {
get-aduser -Filter $filter -SearchBase $OU -Properties $properties
}
Is there a go to tutorial or process that anyone is familiar with that may assist me on this journey to try and figure out how to do this. I think I am going to come up with a tonne of permission issues and blockers with needing to pull information from Azure AD but I need to start this one somewhere.
Really appreciate the assistance, thanks.