Hi, this is my first post so let me know if I’m not doing this correctly.
We have an employee offboarding process in Freshservice and would like to add Freshservice automation that, when an offboarding ticket is created, sends a KQL query to our Microsoft instance, specifically Defender Advanced Hunting, and the results of the query should be placed back in the ticket.
The Microsoft documentation suggests that we should do this via Microsoft Graph. I’d like to create a FS workflow that makes a web request to Microsoft Graph to start the query, but no matter what combinations of configurations I attempt I get blocked with errors like “invalid host” or "InvalidAuthenticationToken", or whatever.
The Microsoft documentation is splintered into scattered sub-topics, doesn’t include examples, and assumes I’m using a programming language like JavaScript, not a platform like FreshService.
Has anyone else managed to make calls into Microsoft, not using the existing AD/Azure apps which don’t include the functions I want? How did you do it?