RemoveStaleUsers

Description

Delete / disable all the stale users who haven't logged in / not created during past X days.

Usage

Usage: qoperation execscript -sn RemoveStaleUsers.sql -si noOfDaysDelete -si noOfDaysDisable -si previewUsers(1/0) -si skipClientOwners(1/0)

Parameters - Below listed arguments can be passed.

noOfDaysDelete - number of days beyond which users logged in / created will be deleted. Set as

noOfDaysDisable - number of days beyond which users logged in / created will be disabled. This should always be smaller than the noOfDaysDelete parameter.

previewUsers(1/0) - whether to preview list of users getting deleted/disabled

skipClientOwners(1/0) - users who own any client will be skipped from deletion.

To delete stale users who have not logged in for past X days, where X is an integer

Example: qoperation execscript -sn RemoveStaleUsers.sql -si 'X' -si '-1' -si '0' -si '0'

To disable stale users who have not logged in for past X days, where Y is an integer

Example: qoperation execscript -sn RemoveStaleUsers.sql -si '-1' -si 'Y' -si '0' -si '0'

To preview users before deletion/disable

Example: qoperation execscript -sn RemoveStaleUsers.sql -si 'X' -si 'Y' -si '1' -si '0'

To skip users who own any client from deletion.

Example: qoperation execscript -sn RemoveStaleUsers.sql -si 'X' -si 'Y' -si '0' -si '1'

Note: X > Y > 0. Set X = -1 or Y = -1 to disable respective operation

Details

  • Scope: All
  • Platform: CommServe (Database: CommServ)
  • Release: 11.0.0

Disclaimer of Warranties

CommVault provides software tools and utilities on an "as is" basis, as a courtesy and convenience to its users, and they may be changed from time to time without notice. These tools and utilities are provided without express, implied, or statutory warranties of any kind. You assume full risk and responsibility for the selection, possession, performance and proper installation and use of the software tools and utilities, and for verifying the results obtained there from. Your use of CommVault software tools and utilities indicates your unconditional acceptance of the above disclaimer.

Loading...