
k5hmx (k5hmx) asked a question.
is it possible to setup an email that triggers when something is found on this report? typically it is blank / null, but it would be cool if we could either setup an email alert, or trigger a test so we can setup the alert in the SIEM..

Hey @k5hmx (k5hmx),
I'd take a look at doing something like this:
Here's how I set this up:
I've attached a sample flow for you to take a look at as well. You can import it into your Workflows environment.
Some notes:
As always, feel free to join us in a Community Office Hours session where you can join the Okta team and other customers to discuss what you're working on, get help with roadblocks, or just listen in and see what's happening. You can book anytime here: https://calendly.com/oktaworkflows - and there is also a link from the homepage of Workflows:
threatdetected
thx for this feedback. was also wondering if it is possible to accomplish this through api and maybe some python / ruby / go code. but maybe this is the way to automate Okta..
I highly recommend you explore Okta Workflows for these types of automations. It was very easy to build the flow that I shared with you, opening up the ability to build automations to members of your org who might not have much experience with scripting or programming languages. Additionally, letting Okta host and manage your automations rather than having to maintain your own custom scripts is another way Workflows makes life easier.
If you're not familiar with the product, you can check out a quick demo here - we have free training and lots of other materials to help get started.
If you wanted to write your own script, it shouldn't be too hard. We're just using Workflows to call the Okta API under the hood, so you could certainly make the same call with a script.
For instance, a cURL would look something like:
curl -v -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
"https://${yourOktaDomain}/api/v1/logs?filter=event_type+eq+%22security.threat.detected%22"
See here for more API info: https://developer.okta.com/docs/reference/api/system-log/#examples