Skip to main content
The agent works one termination ticket from start to finish. It checks that the person who asked may request a termination, reads your termination SOP, and then works through the user’s mailbox, sign-in, licenses, groups and PSA contact. Each change to the user, the mailbox or a group waits for a technician to approve it. It is the reverse of M365 User Onboarding, and for hybrid clients it uses the same company and RMM setup as Hybrid AD User Onboarding.

Pick the template for your PSA

Two templates carry the name M365 User Offboarding. They have the same instructions, tools and Microsoft 365, Exchange and Active Directory permissions. Only the PSA settings differ. The template picker shows only the one that matches your PSA. Neither template supports ServiceNow, Accelo or Zendesk.
On Syncro, the template cannot deactivate the contact or send the completion reply as shipped, because Contacts is at Read and Client-Facing Notes is at None. Set both to Write on Tools & Settings, under PSA, or delete steps 8 and 10 from the instructions.

What the agent does

The steps come from the template’s Custom Instructions. Each change uses a permission group on the Tools & Settings tab. For a hybrid client, Neo makes directory changes in on-prem Active Directory and starts an Entra Connect sync to carry them to Microsoft 365. Set the client up as in Hybrid AD User Onboarding steps 1 and 2. The template also turns on Microsoft 365 Security, Directory Roles and Devices at Write with Approval on, but no step uses them. Add a step if you want the agent to revoke the user’s sign-in sessions, remove admin roles, or wipe or retire their devices. A device wipe always asks a technician, whatever the group’s setting.

Set it up

1

Start from the template

Open the template for your PSA from the table above. The agent opens with Test Mode on, so nothing changes in your systems until you turn it off.On Triggers & Filters, Trigger When is Manual Only: the agent runs only when a technician starts it on a ticket. If your PSA has the Neo panel, turn on Show in PSA Pod so technicians can start it from the ticket.
2

Choose who approves

On Tools & Settings, under Approvals, open Request Technician-in-the-Loop Approval. The template ships with no approvers, and Neo does not save the agent until it has one. Pick people under Technicians-in-the-loop who can approve actions, or a channel under Teams or Slack channels & chats that can approve. Each approver needs the Neo AI Agent app in Teams (Technician-in-the-Loop).Change License Seats ships with Allow removing seats on, Allow adding seats off and Approval on. It needs a license marketplace integration. Without one, the agent cannot lower the seat count. Removing the last seat never cancels a subscription (Change License Seats).
Request Technician-in-the-Loop Approval settings: approval channels, Who receives approval requests and the approvers list
3

Check the permissions

On the same tab, under Identity & Workspace, the template sets:
  • Microsoft 365 Admin (Cloud): User Management, Groups, Security, Licensing, Directory Roles and Devices at Write with Approval on.
  • Exchange (Online/Cloud and On-Prem): Mailboxes and Mailbox Permissions at Write with Approval on.
  • Active Directory (On-Prem): User Management and Groups at Write with Approval on, and Entra Connect Sync at Write.
With Approval on, Neo holds each change until a technician approves it, then makes it. Keep it on for an offboarding agent. Do not click a preset here: on Microsoft 365 Admin (Cloud), IT Admin keeps approval only on Applications, Conditional Access, Directory Roles and Defender Indicators, and Full Automation keeps none.Under PSA, check the groups in the table at the top of this page. On Syncro, set Contacts and Client-Facing Notes to Write if you want steps 8 and 10.
M365 User Offboarding Microsoft 365 Admin (Cloud) permissions: Devices, Directory Roles, Groups, Licensing, Security and User Management at Write with Approval on
4

Fit the instructions to your process

Under Custom Instructions, replace the template values with yours:
  • The titles that may request a termination (step 1).
  • The documentation title “User Termination” (step 2). If your SOP has another title, use it, or remove the step.
  • The contact Title format Terminated %MM/DD/YY% - %Ticket ID% (step 8).
Step 1 tells the agent to message Admins and HR when the requester is not on the list, but the template has no email or Teams tool. Turn on Send Email under Messaging for that step, or change it to “add an internal note and stop”.
5

Test on a test user

Create a test user in the client’s Microsoft 365 tenant, for example test.leaver@contoso.com, with a license, a mailbox and two group memberships. Open a termination ticket for that user from an authorized contact.
  1. With Test Mode on, click Run in the agent’s header. Pick Real ticket from PSA, enter the ticket under Ticket IDs, and run. Neo reads your live tenant but changes nothing, and posts its plan as an internal ticket note (Report test results via). Exchange PowerShell does not run in Test Mode, even to read (why).
  2. Turn Test Mode off and run the agent on the same ticket again, with Supervised run on. Approve each change and check the result in the Microsoft 365 admin center and your PSA.
  3. Read each run on Activity. Delete the test user when you are done.
Only then use the agent on a real leaver. The Approval switches still hold each Microsoft 365, Exchange and Active Directory change.

Variations

Start automatically on termination tickets

On Triggers & Filters, change Trigger When to Ticket Created and add a filter for your termination ticket type under Filter Tickets. Without a filter, the agent runs on every new ticket.