Open onfire4g05 opened 2 years ago
Something similar be implemented in Privileges 2.0.0, which will be available later this year. We'll support posts to a https url and will provide data like this:
{ "user": "username", "admin": true, "expires": "2024-06-18T15:50+00Z", "reason": "just for fun", "uuid": "B4217748-7F6E-4FAF-B509-BC803E2EDFEE" }
Would be great not only to have Syslog, but also other possibilities (MQTT, LogAnalytics or other MDM-based log-collectors)
This adds another option for the logging method that will allow for an http POST with params
message
andudid
. The thought behind adding the UDID would be to use a simple script on the server-side that would interface with the MDM to get the device info that initiated the request and then proceed to log it. For example, we'll use this to send a Slack message to our admins that we can use to go directly to the device in our MDM.As an example, in jamf, you can easily get the computer details by udid via
https://your-server.jamfcloud.com/JSSResource/computers/udid/{udid}
.If this PR is accepted, I'll edit the wiki for this new feature.