The Remove-MSOnlineMailPermission cmdlet removes mail-related permissions from one or more Microsoft Online Services user ...

The Remove-MSOnlineMailPermission cmdlet removes mail-related permissions from one or more Microsoft Online Services user accounts.  Syntax for removing permissions from one user account: Remove-MSOnlineMailPermission Identity [email protected] -Credential $cred -TrustedUser [email protected] -RemoveFullAccess True -RemoveSendAs True  Syntax for removing permissions from multiple user accounts using a RemovePermissions.csv file (sample CSV file shown below syntax): $csv = Import-Csv -Path c:
emovePermissions.csv $csv | Remove-MSOnlineMailPermission -Credential $cred  To remove permissions from multiple accounts, use a CSV file like the following: Column titles: Identity,TrustedUser,RemoveFullAccess,RemoveSendAs Row1: [email protected],[email protected],True,True Row 2: [email protected],[email protected],True,False