User Association

This script is to identify a user's associations with Call Centers (CC), Hunt Groups (HG), and Pick Up Groups. Additionally, this returns other key information of the user such as extension, phone number, and services and feature packs assigned as this data can be useful when reviewing which CC and HG they are associated to for example if an agent in a CC has a higher feature pack than needed for work in x CC.

This script uses the below methods to achieve this:

api.call_pick_ups.get_call_pickup_group_user()
api.hunt_gorups.get_group_hunt_group_user()
api.call_centers.get_user_call_center()
api.reports.get_user_report()

Parameters

  • service_provider_id: Service Provider where the group is hosted.

  • group_id: Group where the User is located.

  • user_id: Target user ID.

Return

  • dict: Returns a dictionary output containing all CC, HG, and Pick Up a user is assigned to.

How To Use:

This method requires keyword arguments i.e. group_id="group_id"

assistant = Scripter(my_api)

assistant.user_association(
	service_provider_id="ServiceProviderID", 
    group_id="GroupID", 
    user_id="UserID"
)

Formatted Output

{
   "userId":"[email protected]",
   "firstName":"John",
   "lastName":"Smith",
   "extension":"2076",
   "phoneNumber":"012345678910",
   "aliases":[
      "12@Domain"
   ],
   "services":[
      
   ],
   "featurePacks":[
      "WBX-B",
      "Agent-AGPCCSA",
      "Call-R"
   ],
   "huntGroups":[
      "[email protected]",
      "FrontDoorOverflow3",
      "CallumTest",
      "Maintenance"
   ],
   "callCenters":[
      "DemoCC",
      "CallCenterName",
      "TechSupport_CC"
   ],
   "pickUpGroup":"tech and service"
}

Last updated

Was this helpful?