How can I delete a large number of users or usergroups at one time?
search cancel

How can I delete a large number of users or usergroups at one time?

book

Article ID: 20295

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

Description:

This is the typical way to delete a usergroup from APM CE:

To delete a user group:

  1. Select Administration > User Groups.
  2. On the User Groups tab, select the check box for the user group that you want to delete.
  3. Click Delete.

But the approach only allows deleting 25 users (on one page) at a time. Is there a way to do a batch delete of a large group of users (Such as 275,000)?

Solution:

By design, only 25 users or usergroups can be deleted at a time,. However, one can customize the UI pages to allow deleting more users or usergroups at a time.
Here are the instructions for deleting 1000 (or any number) of users.

  1. During non-business hours, login as root and open the following UI page:

    " vi /etc/wily/cem/tess/tomcat/webapps/wily/WEB-INF/jsp/userList.jsp
    [To delete users]

    " vi /etc/wily/cem/tess/tomcat/webapps/wily/WEBINF/jsp/userDefGroupList.jsp
    [To delete usergroups]

    " vi /etc/wily/cem/tess/tomcat/webapps/wily/WEB-INF/jsp/userSearch.jsp
    [To delete users from search operation]

  2. Search for pagesize= in the above file and change the value from 25 to 1000 and then save it.
  3. After deleting the users/usergroups, please revert the changes(i.e. set value back to 25)
  4. As a last step, restart the EM to clear the cache.

Environment

Release:
Component: APMCM