Offboards a user from a specified customer tenant.
The New-CIPPUserOffboarding function automates the offboarding process for a user in a specified customer tenant. It provides various options to customize the offboarding process, including forwarding emails, converting the mailbox to a shared mailbox, disabling sign-in, removing licenses, and more. It is also possible to schedule the offboarding for a later date.
![]()
![]()
The ID of the customer tenant from which the user is being offboarded. This parameter is mandatory.
![]()
![]()
The username of the user being offboarded. UserPrincipalName(UPN) should be used. This parameter is mandatory.
![]()
![]()
Sets an out-of-office message for the user. This parameter is optional.
![]()
![]()
Forwards the user's emails to another address. This parameter is optional.
![]()
![]()
Keeps a copy of forwarded emails in the user's mailbox. This parameter is optional.
![]()
![]()
Grants access to the user's OneDrive to another user. UserPrincipalName(UPN) should be used. This parameter is optional.
![]()
![]()
Grants access to the user's mailbox without automapping. UserPrincipalName(UPN) should be used. This parameter is optional.
![]()
![]()
Grants access to the user's mailbox with automapping. UserPrincipalName(UPN) should be used. This parameter is optional.
![]()
![]()
Converts the user's mailbox to a shared mailbox. This parameter is optional.
![]()
![]()
Hides the user from the Global Address List (GAL). This parameter is optional.
![]()
![]()
Removes the user from all groups. This parameter is optional.
![]()
![]()
Cancels all calendar invites for the user. This parameter is optional.
![]()
![]()
Removes all licenses assigned to the user. This parameter is optional.
![]()
![]()
Revokes all active sessions for the user. This parameter is optional.
![]()
![]()
Removes all mailbox rules for the user. This parameter is optional.
![]()
![]()
Removes all mobile devices associated with the user. This parameter is optional.
![]()
![]()
Removes all mailbox permissions for the user. This parameter is optional.
![]()
![]()
Specifies the date and time when the user should be added. If not specified, the user will be offboarded immediately. Input should be a valid datetime object. Will be converted to Unix time. This parameter is optional.
![]()
![]()
Specifies whether to send the results of the scheduled task to the email address specified in the notification settings of your CIPP instance. This parameter is optional.
![]()
![]()
Specifies whether to send the results of the scheduled task to the PSA system specified in the notification settings of your CIPP instance. This parameter is optional.
![]()
![]()
Specifies whether to send the results of the scheduled task to the webhook specified in the notification settings of your CIPP instance. This parameter is optional.
PS > New-CIPPUserOffboarding -CustomerTenantID "8ad00f9e-1953-47d1-897b-8fec4138cde7" -User "jdoe@domain.com" -DisableSignIn -RemoveAllLicenses -ConvertToSharedMailbox
This example immediately offboards the user "jdoe@domain.com" from the customer tenant with ID "8ad00f9e-1953-47d1-897b-8fec4138cde7", disables sign-in, removes all licenses, and converts the user's mailbox to a shared mailbox.PS > New-CIPPUserOffboarding -CustomerTenantID "8ad00f9e-1953-47d1-897b-8fec4138cde7" -User "jane.doe@domain.com" -DeleteUser -ScheduledFor ((Get-Date).AddDays(7)) -SendResultsToEmail
This example schedules the offboarding of the user "jane.doe@domain.com" from the customer tenant with ID "8ad00f9e-1953-47d1-897b-8fec4138cde7" for 7 days from the current date.
The results of the scheduled task will be sent to the email address specified in the notification settings of your CIPP instance.