Use case 6: Find all users and their Extensions
Follow this example to find all users and their Extensions.
Steps
- Get all Data Sources in the system by following the example in Use case 1: Get all Data Sources in the system.
- For each Data Source, call the GET method on the end point /api/em/v2/datasources/{dataSourceId}/workspace
Sample Response:
Copy"data" : [ { "type" : "workspace", "id" : "1", "attributes" : { "assets" : [
{ "dataSourceID" : 1, "employeeID" : 1, "loginName" : "domain\\somelogin" },
{ "dataSourceID" : 2, "employeeID" : 1, "dataPortID" : 2 }] } },
{ "type" : "workspace", "id" : "10", "attributes" : { "assets" : [
{ "dataSourceID" : 100, "employeeID" : 10, "loginName" : "domain\\someOtherlogin" },
{ "dataSourceID" : 200, "employeeID" : 10, "dataPortID" : 20 } ] } } ]}