Hey everyone, I’m working on an after create script and trying to access some of the values inside of $requestObject.AttributeRequests so that I can populate some data in an email being sent by a powershell script.
Do you know how I can capture the entirety of $requestObject (including all account provisioning values like UPN and mail) so that I can debug the script in VS Code?
Or alternatively, how I can access the data I’m looking for? I’ve gotten this far in PS with the below code and my logs report out the right attribute that I’m looking for but when I drill down into $mailObject.value, it doesn’t like the data type. Do I just need to “out-string” it?
Apparently google is better at search than discourse is. It doesn’t capture the whole request object like I was hoping for so that I could basically “replay” a provisioning event without actually having to build an AD account, but it solves the immediate need of finding the attribute I was looking for inside the request.