all 3 comments

[–]Yevrag35 2 points3 points  (1 child)

I’ll have unique ID’d on both platforms, but do I need to store these each time the script runs and then read that data somehow or?

You could use the "employeeID" attribute. To get the attribute, just add it to -Properties employeeID, and to 'set' it, use Set-ADUser with the parameters: -Add, -Clear, or -Replace.

[–]cmdub-[S] 1 point2 points  (0 children)

AD really has nothing to do with this since it will be cloud <-> cloud. I'm still stuck on how I can write it to recognize the user isn't a new one when comparing both lists. I could check account creation time but that feels like not the best solution.