Skip to main content

Direct actions

Most of this API follows the draft and publish model: you stage changes, then make them live. Direct actions are the exception. They act on live users and devices immediately, with no draft and no publish step. Suspending a user takes effect at once.

On this page: draft model vs direct actions, direct actions vs policy controls, the shipped direct actions, related.

Use this page to understand the distinction. For step-by-step examples, see the remediation use cases Suspend a compromised user and Quarantine a lost or compromised device.


Draft model vs direct actions

Draft modelDirect actions
What it changesConfiguration (rules, objects)Live identity / device state
When it takes effectAfter you publishImmediately
configurationVersionAppliesDoes not apply
Reversible byPublishing a new versionA paired action (for example resume)
ExamplesCreate a rule, edit a groupSuspend a user, force re-auth a device
note

No draft, no undo via publish. Because direct actions are immediate, there is no "draft" to review and no publish to gate them. Treat them like operational commands: validate inputs, and reverse with the paired action (resume, restore) rather than by reverting a configuration version.


Direct actions vs policy controls

This trips people up, so it is worth stating plainly. Some capabilities that sound like immediate "remediation" are actually policy controls, which are draft-gated:

You want to...This is...How it works
Suspend a user right nowDirect actionPOST /users/suspend, immediate
Force a device to re-authenticateDirect actionPOST /devices/force-reauth, immediate
Clear browser data on matching devicesPolicy control (flushBrowserData)Set on a security rule, takes effect on publish

The shipped direct actions

TargetActions
Userssuspend, resume, force-reauth
Devicesarchive, restore, suspend, resume, delete, force-reauth

All are POST calls under /users and /devices that return 200 on success. For request bodies and ordering rules, see Suspend a compromised user and Quarantine a lost or compromised device.