0 votes

Hello Support

We are in need of a process that will disable/delete the user mailbox after 30 days of deprovisioning a user. We already use Mailtip and forward email to the manager on file and would like to wait 30 days before deleting the mailbox from Exchange. We are using O365 but sync from On Prem to Cloud only.

Thank you as always for your support.

Jay

by (3.2k points)

1 Answer

0 votes
by (272k points)
selected by
Best answer

Hello Jay,

There is no need to delete the mailbox, you can simply revoke the Office 365 license 30 days after deprovisioning a user. To do so, you can use a Scheduled Task that will check user deprovision date and revoke all licenses if a user account was deprovisioned more than 30 days ago. The deprovision date can be specified in one of Adaxes custom attributes (e.g. CustomAttributeDate1).
For example, your Deprovision Custom Command can look like the following:

To create the Scheduled Task:

  1. Launch Adaxes Administration Console.
  2. Right-click your Adaxes service node, navigate to New and click Scheduled Task.
  3. On step 3 of the Create Scheduled Task wizard, select User Object type and click Next.
  4. Click Add Action.
  5. Select Activate or modify Office 365 account and then select Deactivate.
  6. Select Revoke licenses and Block checkboxes and then click OK.
  7. Double-click Always.
  8. Select If <property><relation><value>.
  9. Select If Deprovision Date greater or equal and click Edit.
  10. Select minus 30 days and click OK twice.
  11. Right-click the condition you have created and click Add Action.
  12. Select Update the User and click Add.
  13. Select Deprovision Date from the Property to modify drop-down list.
  14. Select Remove property and click OK twice.
  15. Finish creating the Scheduled Task.

You should have something like the following:

Related questions

0 votes
1 answer

I would like to delete users that have been disabled for more then X number of days. This would be a phase of our deprovisioning process. The user is first disabled and placed ... we are sure that we no longer need it, I would like to automaticially delete it.

asked Oct 13, 2022 by rmedeiros (380 points)
0 votes
1 answer

I'd like some help with a script to revoke a users rights to a shared mailbox upon being removed from a security group. I already have the reverse, a script that adds users to a shared mailbox, if they are a member of a group, now I just need the reverse.

asked Mar 20 by dominik.stawny (160 points)
0 votes
1 answer

Hi, Does someone already have a script that I can run as a scheduled task that will email a list of enabled active directory accounts that have exchange mailboxes? I ... First, Middle, Last, Title, Location and Email address. Any assistance is appreciated.

asked Feb 2, 2017 by mdedmon (150 points)
0 votes
1 answer

How would a script be written that accomplishes the following task? In this scenario, UserA would be selected with the Modify user action, then UserB would be input to ... rule that runs the script to allow reviewer permissions on UserA's calendar for UserB

asked Dec 6, 2012 by mdeflice (350 points)
0 votes
1 answer

I need to pull a years worth of deprovisioned user from Adaxes. When I try to do this through the interface I only get a couple of months worth of data. What would be the ... this data...Powershell? Is there a script that someone has that I can use? Thanks.

asked Apr 15, 2014 by loopy (20 points)
3,342 questions
3,043 answers
7,764 comments
544,930 users