The GET /api.php/v1/deviceGroups.json API is used to search for a specific device group name in order to get the credential source names and IDs associated with it. However, the IDs listed in the output do not always match the names.
Here is the output of a device group with three credential sources:
"credentialSources": [
{ "name": "test-rh79", "id": "3994001" },
{ "name": "test-rh87", "id": "3991001" },
{ "name": "test-rh91", "id": "4002001" }
]
And here is the output of the same device group with four credential sources:
"credentialSources": [
{ "name": "test-Win2012", "id": "3994001" },
{ "name": "test-rh79", "id": "3991001" },
{ "name": "test-rh87", "id": "4002001" },
{ "name": "test-rh91", "id": "3985001" }
]
Privileged Access Manager, versions 4.1.0-4.1.5
There was an issue with the SQL query made internally when the API was called.
The issue is resolved as DE581696 in the 4.1.6 release. All 4.2.x releases also have the code change in them.