Chat now with support
Chat with Support

Metalogix Essentials for Office 365 2.2.3 - Advanced Installation Guide

Remove Parameters

The following are parameters for the -cmd remove command

Using this command you can perform a "Remove Permissions" operation

-userLogin

 

or

-csvUsersFile

specifies the user/group for which you want to remove the permissions

or

specifies the CSV file and path to the file with the user mapping

-csvFile

specifies the CSV file and path to the file which contains the list of Sites/Site Collections to run this operation against

-includesubsites

specifies whether you want to remove permissions from within sites and their sub sites

-includelists

specifies whether you want to remove permissions from within lists

-includeItems

specifies whether you want to remove permissions from within items (may be time consuming)

-includeSiteCollectionAdmin

specifies whether you want to remove user(s) as a Site Collection Administrator.  Only applies to root site collections.

-removeSource

specifies whether you want to also remove the permissions of the source user (required for this -remove operation)

 

Examples:

metavis  -cmd remove  -srcuser user@contoso.com -srcepass encryptedPassword -userLogin user2@contoso.com -csvFile "D:\Folder\fileName.csv" -includeSiteCollectionAdmin -includeSubsites -includeLists -includeItems -removeSource -noSplash
 

metavis  -cmd remove  -srcuser CONTOSO\user -srcepass encryptedPassword -csvUsersFile "D:\Folder\UsersfileName.csv" -csvFile "D:\Folder\SitesfileName.csv" -includeSiteCollectionAdmin -includeSubsites -includeLists -includeItems -removeSource -noSplash

Related Documents