MSP StockroomFind a guide, template or tool…/
Field guides / AI and automation

AI-07 Field guide / AI and automation

Put an approval gate in front of automations that write to your PSA or Microsoft 365

An automation that creates a user, assigns a licence or grants mailbox access does it in seconds, for whoever filled in the form. Put a named person between the request and the write for anything that grants access, costs money or is hard to undo, and make that approval worth more than a click.

4 min read / Updated Dec 2026

For Automation & AI, Service manager, Tech lead, Service desk & technicians

On this page

Decide which writes need a gate

Gate anything that grants access, costs money or is hard to reverse. Log everything else.

WriteGate?
Create a user or re-enable a disabled oneYes
Add someone to an admin role or privileged groupYes, approved in a signed-in tool, never by email alone
Assign a paid licenceYes: it costs the client money
Grant mailbox, Send As or file share accessYes
Disable or delete a user, remove a licenceYes: hard to undo
Add a note or change status on a PSA ticketNo, but log it
Read data for a reportNo

Give the approver enough to say no

An approval request that says only "Approve new user?" gets approved without thought. The request should show:

  • The exact change in plain words: create jsmith@contoso.com at Contoso, assign one Microsoft 365 Business Premium licence, add to the Sales and All Staff groups.
  • Who asked, how, and the ticket number.
  • Which client it will run against.
  • Any cost, and how to undo the change.

Name an approver for each client and each kind of change. The person who made the request never approves it.

Design rules that hold in any tool

  • Gate before the first write. Do every read and validation first, then pause for approval, then write. A gate after the user exists is a notification, not an approval.
  • No answer means no. A denial and an expired request both end the run with nothing written and a note on the ticket saying so.
  • Re-check after approval. Time has passed. Confirm the user still does not exist, the licence is still available and the ticket is still open before writing.
  • Make writes safe to run twice. Look for the object before creating it and record the ticket number with each run, so a resubmitted form or a retried run does not create a second user. Do not assume the platform prevents duplicates for you.
  • Record the decision. Approver, time, decision and exactly what was written go on the ticket.
  • Know what a click proves. A button in an email proves only that someone with access to that mailbox clicked it. For admin roles and other privileged changes, take the decision somewhere the approver has to sign in.

Building the gate in Rewst

The details below come from Rewst's documentation for Rewst Classic. Rewst announced a new platform on September 30, 2026; existing customers stay on Rewst Classic for now, so check the documentation for the version you run.

  • Confirmation Email action. Sends an email with buttons you define (its inputs include to, subject, title, message and buttons), pauses the workflow in the Awaiting-User-Input state, and sets the inquiry_result output to the button that was clicked. Route Approve and Deny with transitions on that output. Rewst's documentation does not say it checks who clicked, so apply the email caution above.
  • Create Pending Task action. Pauses until someone clicks one of its buttons in the Rewst UI, then returns that button's value. The decision is made inside Rewst, so use it for privileged changes.
  • Transitions. Each can follow Success, Failure, Always, or a Custom condition written in Jinja. Send Deny and every failure to a step that notes the ticket and ends the run.
  • Timeouts. Workflow settings include a Workflow Timeout in seconds on the General tab and a Task Timeout on the Advanced tab. The builder documentation does not describe what happens to a waiting approval when a timeout is reached, so test it before you rely on it.
  • Testing. Run opens a dialog where you choose the organization before Run Test. Each action's Testing tab has a Mock this action toggle and Add Mock Result, so a write action returns sample data instead of running.
  • User Onboarding Crate. By default it provisions users as soon as the form is submitted. Its approval step stays off until you set the org variable require_approval_for_new_users (default 0, disabled); new_user_approval_email sets where approval requests go. A denial ends the workflow without creating the user.
  • Org variables. A value set at your MSP organization applies to client organizations unless a client sets its own. Set approval variables for each client on purpose, and check what each client actually gets.

Test the gate before it guards anything

  1. Mock every write action.
  2. Run against a test client organization.
  3. Try every path: approve, deny, no answer until the timeout, the requester trying to approve, and the same ticket submitted twice.
  4. Check that the ticket records each outcome, and that deny, timeout and duplicate wrote nothing.
  5. Turn mocking off one write at a time, against a test tenant.
  6. Go live with one client, and review the first ten runs by hand.

Checklist / Usable takeaway

Approval gate checklist

  • Every write that grants access, costs money or is hard to undo sits behind a gate.
  • The approval request shows the exact change, the requester, the ticket, the client, the cost and the undo.
  • A named approver per client and change type; requesters never approve their own requests.
  • The gate sits before the first write; denial and timeout end the run with nothing written.
  • Target state re-checked after approval; a repeated run for the same ticket writes nothing new.
  • Privileged changes approved inside a signed-in tool, not by an email button.
  • Approver, time, decision and result recorded on the ticket.
  • Approve, deny, timeout, self-approval and duplicate paths tested with writes mocked.

If you cannot show that deny, timeout and duplicate runs write nothing, the automation is not ready to write.

Sources and notes

Rewst action names, inputs, outputs and Crate defaults were checked against Rewst's documentation for Rewst Classic. Whether an emailed approval identifies the person who clicked, and how timeouts affect a waiting approval, are not documented there and are treated as unknown. The design rules are general practice, not Rewst features. Vendor details checked December 1, 2026. See method and evidence notes.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →