githubEdit

Microsoft: User Offboarding Crate

circle-info

If you’re new to Crates, read through our introductory Crate documentation herearrow-up-right. Find the Crate in our Crate Marketplace.

What does the Microsoft: User Offboarding Crate do?

Our Microsoft: User Offboarding Crate streamlines the offboarding process for users within an organization, for time savings and increased efficiency. The automation is triggered via a form submission, allowing designated personnel to initiate the offboarding tasks.

  • Detailed ticketing: Automation logging steps that are done throughout the offboarding process are documented by logging entries to the ticket, via a single note, making it easier to tell where an issue occurred and what steps were performed.

  • Efficiency: Streamline the user offboarding process by increasing time savings and decreasing the potential for user error.

  • Security: Ensure that necessary offboarding steps are performed when an account is terminated.

circle-exclamation

This Crate does the following tasks:

  • Detailed Ticketing

  • Offboarding Approval Process

  • Offboarding Delay

  • Supervisor Notifications

  • Session Invalidation

  • Password Reset

  • Exchange Actions

  • Convert to shared mailbox

  • Assignment of shared mailbox permissions

  • Hide from GAL

  • Forward mail

  • Set out of office

  • Remove mobile devices

  • Disable Accounts

  • Move OU

  • Group Membership Removal

  • Employee ID Removal

  • Disable PSA Contact

  • Removal of Supervisor Assignment

  • License Removal

Crate prerequisites

The Microsoft Cloud Integration Bundle must be set up before unpacking this Crate.

Identity provider configuration

  • Azure AD Only

  • Hybrid On-Prem and Azure AD: Synced

  • Hybrid On-Prem and Azure AD: No Sync

  • On-Prem Only

Set up the Microsoft: User Offboarding Crate

  1. Navigate to Crates > Crate Marketplace in the Rewst platform.

  2. Search for Microsoft: User Offboarding.

  3. Click on the Crate tile to begin unpacking.

  4. Click Unpack Crate.

  5. Click Continue.

  6. Click Unpack.

  7. The organization variable user_offboard_form_name must be set to the name of the form unpacked with the Crate.

Use the Microsoft: User Offboarding Crate

  1. Navigate to Automations > Workflows in the Rewst platform

  2. Search for Microsoft: User Offboarding.

  3. Click into the workflow.

  4. Click to navigate to the trigger.

  5. Click View Direct URLs.

  6. Select the company you'd like to use to test the workflow. Copy the URL and paste it into a new window.

  7. Fill out the form as appropriate for the company and user you are offboarding. Make sure to click Submit at the end of the form.

  8. Once the form is submitted, the workflow will begin to run. To view the results, click in the workflow editor page.

  9. Click into the results to see the execution results with successes and failures, if there are any.

Example of end of ticket output

chevron-rightExample of end of ticket output for the Microsoft: User Offboarding Cratehashtag

Offboading for John Smith completed.

User was removed from the following groups: test distro list test security group Actual No Really LLC

Could Not Remove User from Dynamic Groups: All Users

Automation Logs:

Automation Complete

Succeeded: True

Status Code: 1001

Warnings: Entry: Group removal completed with warning, this is usually due to the user being a member of a dynamic group. - Status: 1001

Errors: No errors reported.

Full Automation Log:

Entry: Successfully sanitised all expected strings - Status: 1000

Entry: Determined IDP to be: on_prem - Status: 1000

Entry: Valid IDP was determined. - Status: 1000

Entry: Gathered user details successfully. - Status: 1000

Entry: No ticket provided via form, creating ticket. - Status: 1000

Entry: Successfully created the PSA Ticket - Status: 1000

Entry: Successfully updated the PSA Ticket - Status: 1000

Entry: No approval needed, continuing. - Status: 1000

Entry: Delay requested. - Status: 1000

Entry: Successfully delayed automation until expected time. - Status: 1000

Entry: Successfully returned a defined password. - Status: 1000

Entry: Notification to supervisor requested. - Status: 1000

Entry: Successfully completed call to lookup supervisor. - Status: 1000

Entry: Successfully verified email of supervisor. - Status: 1000

Entry: Notified supervisor. - Status: 1000

Entry: Invalidate sessions chosen in form, initiating invalidation of sessions. - Status: 1000

Entry: Successfully invalidated sessions. - Status: 1000

Entry: Successfully changed password. - Status: 1000

Entry: Exchange actions chosen in form, initiating Exchange actions. - Status: 1000

Entry: Performed Exchange actions. - Status: 1000

Entry: Disable account chosen in form, disabling user. - Status: 1000

Entry: Successfully disabled account. - Status: 1000

Entry: Environment variables indicate AD Sync is needed, attempting AD Sync. - Status: 1000

Entry: Attempted to run AD Sync. Workflow completed successfully but this doesn't indicate a successful AD Sync. - Status: 1000

Entry: Group removal completed with warning, this is usually due to the user being a member of a dynamic group. - Status: 1001

Entry: Employee ID removal not requested, skipping. - Status: 1000

Entry: PSA contact removal requested, attempting removal. - Status: 1000

Entry: Successfully ran disable_psa_contact task. - Status: 1000

Entry: Supervisor/Manager attribute removal requested, attempting removal. - Status: 1000

Entry: Successfully removed supervisor. - Status: 1000

Entry: Attempted to run AD Sync. Workflow completed successfully but this doesn't indicate a successful AD Sync. - Status: 1000

Entry: Attempting to move user to another OU. - Status: 1000

Entry: Moved user to the requested OU. - Status: 1000

Entry: Workflow complete, attempting ticket update. - Status: 1000

Org variables in use for the Microsoft: User Offboarding Crate

circle-info

For information specific to these org variables please review our guidance organization variables here.

Note that org variables not found in the organization variables documentation are typically system variables that are handled by the integration mappings.

If you haven't done so already, it's recommended that you run the org variable configuration cratearrow-up-right, which will help you set org variables that are relevant to you and your customer's environments.

  • agent_smith_is_installed

  • automation_task_new_user_time

  • automation_task_offboard_user_time

  • azure_iothub_name

  • azure_iothub_resource_group

  • azure_iothub_subscription_id

  • cwControl_CompanyName

  • cw_automate_client_id

  • cw_control_session_group_override

  • cw_manage_company_id

  • datto_company_id

  • datto_note_type

  • datto_rmm_site_id

  • default_psa

  • default_rmm

  • failure_email

  • freshdesk_company_id

  • halo_psa_client_id

  • halo_ticket_site_name

  • immybot_tenant_id

  • kaseya_bms_account_id

  • kaseya_vsa_10_scriptid

  • kaseya_vsa_org_id

  • kaseya_vsa_x_org_id

  • nable_customer_id

  • nable_device_filter_id

  • nable_rewst_powershell_script_id

  • new_user_approval_email

  • ninja_org_id

  • ninja_run_as_user

  • no_azure_ad

  • no_ticket_time

  • onprem_no_adsync

  • preferred_domain_controller

  • primary_domain_controller

  • primary_identity_provider

  • priority

  • psa_alert_ticket_type

  • psa_all_notes_internal

  • psa_datto_default_issue_type

  • psa_datto_default_sub_issue_type

  • psa_datto_default_ticket_category

  • psa_datto_default_ticket_type

  • psa_default_agreement_name

  • psa_default_board_id

  • psa_default_tech_id

  • psa_default_tech_workrole

  • psa_default_tech_worktype

  • psa_default_ticket_impact

  • psa_default_ticket_priority

  • psa_default_ticket_source

  • psa_default_ticket_status

  • psa_default_ticket_urgency

  • psa_halo_cab_id

  • psa_halo_cab_type

  • psa_halo_ticket_outcome_completed_task

  • psa_new_user_ticket_subtype

  • psa_new_user_ticket_type

  • psa_no_ticket_time

  • psa_offboarding_user_ticket_item

  • psa_offboarding_user_ticket_subtype

  • psa_offboarding_user_ticket_type

  • psa_ticket_status_completed_task

  • psa_ticket_status_waiting_input

  • require_approval_for_offboarding_users

  • rmm_preferred_adconnect_server

  • servicenow_account_id

  • time_entry_ticket_status

circle-exclamation
  1. Unpack this Crate in your environment.

  2. Perform testing to make sure that you have all the required organization variables set correctly. The same variables are used in this updated Crate as were used in the previous version. If you need to update any organization variables, then please follow this guidearrow-up-right.

  3. After testing and confirming that it is functioning as expected, please move forward with the steps below:

    1. If you plan to utilize the updated form in this crate, rather than the legacy form:

      1. Go to the previous crate'sarrow-up-right top level workflow and disable any form triggers. This will prevent users from submitting requests to the wrong workflow.

      2. Update your internal documentation with the new form links.

      3. If Applicable, provide your customers with their new form link.

    2. You are able to link the previous Crates form to this version, though given the minimal differences there may not be a clear advantage other than not needing to change the link destinations. The previous form will not receive any further updates or enhancements.

circle-info

Got an idea for a new Crate? Rewst is constantly adding new Crates to our Crate Marketplace. Submit your idea or upvote existing ideas here in our Canny feedback collectorarrow-up-right.

Last updated

Was this helpful?