Syntax
#########User info######
$userToOffboard = “olduser@oldclient.com”
$CustomerDefaultDomainname = “MyClient.onmicrosoft.com”
######### Secrets #########
$ApplicationId = ‘ApplicationID’
$ApplicationSecret = ‘ApplicationSecret’ | ConvertTo-SecureString -Force -AsPlainText
$RefreshToken = ‘RefreshToken’
$ExchangeRefreshToken = ‘ExchangeToken’
$UPN = “UPN-Used-to-Generate-Tokens”
Download Full Script
Purpose: | This script will help of o365 user offload/ remove to o365. |
Modification: | Username needs to be changed |
Type: | M365 |
Compatibility: | Cloud Only |
Tags: | |
Reference link: |