Skip to main content

Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See Getting Started on the Admin By Request connector page.

Send Admin By Request events to StackOne

Each Admin By Request webhook pushes one type of data. Create one webhook for each event you want to receive, all pointing at the same Native Webhook URL with that event’s event value added.

1

Copy the Native Webhook URL

On the linked account in StackOne, copy the Native Webhook URL.

2

Choose the data to push

Sign in to the Admin By Request portal and open Settings > Tenant Settings.

  • Click Data.
  • Open the Webhooks tab.
  • Click Create Webhook.
  • Enabled: ON
  • Name: a name that identifies the event, for example StackOne - Event: New event
  • Push Data: the event to send, for example Event: New event
Admin By Request Webhook form with the Push Data list open and Event New event highlighted
3

Set Pushed Events for security events

When Push Data is Event: New event, the form adds Pushed Events, set to Alerts only. Information and warning events are only pushed when you widen it.

  • Pushed Events: All events
  • Skip this step for the other Push Data types.
Admin By Request Webhook form with Pushed Events set to All events
4

Enter the URL and save

Each webhook sends to the Native Webhook URL with its event’s value added.

  • URL: the Native Webhook URL followed by ?event= and the event’s value from the event list, for example ?event=event.new_event. If the Native Webhook URL already contains ?, add &event= instead.
  • Leave Add headers off.
  • Click Save.
  • Repeat these steps for each other event you want, choosing its Push Data type and its own event value.
Admin By Request Webhook form with the Native Webhook URL in the URL field and the Save button highlighted

Available webhook events

These Admin By Request events can be enabled. Only events turned on in StackOne are delivered, and each one needs its own webhook in the portal with the event value shown in backticks.

1

Request events

Events for elevation requests (Run As Admin, Admin Session, Server Session).

  • Request: New request (request.new_request) — Fired when a user submits a request that needs approval
  • Request: Approved (request.approved) — Fired when a request is approved
  • Request: Denied (request.denied) — Fired when a request is denied, with the denial reason
2

Auditlog events

Events for auditlog entries.

  • Auditlog: New entry (auditlog.new_entry) — Fired when a new auditlog entry is created
  • Auditlog: Entry change (auditlog.entry_change) — Fired when an auditlog entry is created or changes, for example when its request is approved or denied
3

Security events

Events raised on managed computers, such as local admin changes, PIN codes and blocked files.

  • Event: New event (event.new_event) — Fired when a new security event is logged; the levels sent follow the webhook’s Pushed Events setting

Delivery format

Details of how Admin By Request delivers events to StackOne.

1

One record per request

Each request carries one record in the same JSON format as the Admin By Request public API: a request, an auditlog entry or a security event. The body has no event type field, so the event value in the URL identifies the event.

  • A new request usually sends Auditlog: Entry change as well as Auditlog: New entry and Request: New request
  • Security events carry eventCode and eventLevel (0 information, 1 warning, 2 alert)

Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.