Removing an entire scoreboard for a user or role
search cancel

Removing an entire scoreboard for a user or role

book

Article ID: 17892

calendar_today

Updated On:

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

I have a user whose scoreboard is no longer functioning correctly. How do I reset it?

Environment

Release:  17.x
Component:  CA Service Desk Manager

Resolution

The scoreboard for a given end user is maintained internally in the SD backend database. It is not possible to roll back a given scoreboard configuration in any way.

If a scoreboard has been found to be corrupt or unusable, the options available are:

  • Delete the entire scoreboard completely from the backend database. When the end user logs back in after the scoreboard removal, the user will see the default scoreboard that they would have depending on the default scoreboard for their access type, as though they logged in for the first time on the SD install.

  • Have the backend database table restored from a backup. The drawback to this is that you may end up rolling back scoreboard changes made for other end users since the last backup performed.


To remove the scoreboard for the given user or role:

  • Login to the SD Primary server:

  • For an individual contact, in a command prompt, run:
    pdm_extract -f "Select id from ca_contact where userid = 'XXXX'"
    (replace 'XXXX' with the affected user's userid)

    This will generate an output that reads like this:
    TABLE ca_contact
    id
    { "###############################" }
    ca_contact
    rows:1
    The long alphanumeric string "###############################" is the UUID for the given user. Keep this value handy.

    In the case of a given role, run:
    pdm_extract -f "Select id from usp_role where name = 'XXXX'"
    (replace 'XXXX' with the affected role's name)

    This will generate an output that reads like this:
    TABLE usp_role
    id
    { "12345" }
    usp_role
    rows:1
    Keep the above integer value handy.

  • The next step is to back up the entire scoreboard table, "User_Query". To do this, run:
    pdm_extract User_Query > usq-backup.dat
  • Then you will need to run the following command to obtain just the affected user's scoreboard entries. In this case, you will need the UUID value to complete the query. The complete command (with the UUID present) is:
    pdm_extract -f "Select * from User_Query where obj_persid = 'cnt:###############################'" > user-del.dat
    In the case of a given role, run:
    pdm_extract -f "Select * from User_Query where obj_persid = 'role:12345'" > role-del.dat
  • Finally, run this command to remove the contents of the generated "dat" file from the backend table, ie:
    pdm_load -r -f user-del.dat
    OR
    pdm_load -r -f role-del.dat