Is there a way to use powershell to interact with the samange api in order to find an incident with a specific title, read the incident, and create a user in active directory based on fields within that incident?
I do not have a direct answer when it comes to using powershell with the API to complete this, I do not have any experience in powershell. I know that with our API you are able to search and access incidents with certain titles so that should be possible.
If you don't mind me asking, what is the use case you are trying to resolve with creating the powershell script? It looks like you are waiting to have an onboarding request create the user in AD but I could be wrong in that assumption. We all know what happens when you assume!
Basically I'd like to comb through our incidents and look for requests for new users We have a specific title for each of these incidents. Example: NTM FName LName Hire/Date/GoesHere. From those incidents I will "read" the page and grab the new users Full name, manager, department etc and build all AD information/email address from it.
Makes sense. I know that we have some customers that pull the data from Samanage and then the Powershell script creates based on that. I do not know of any customers that have the Powershell script look in Samanage and pull the data and create the user all in one.
Are you creating the user in an onprem AD or are you creating the user in something like O365 or Azure? The reason I am asking is because we have Application Integrations in the service catalog that would be able to call out to something that is not onprem to create that user for you.
I will also ping around to see if we have anyone using an Powershell script to do the task you are looking to do.
It is OnPrem and thanks for the advice.
Retrieving data ...