Collect Identities
Run one or more identity collectors.
GET https://instance.securid.com/aveksa/command.submit?cmd=collectIdentities
note
Requires a user with System:Manage privilege.
Request
Parameters
| collectIdentities | |
| format | properties - (Default) Returns the response as key=value pairs. When multiple collectors run, run-id is a CSV of all run IDs.json - Returns the response as JSON. |
| name | The friendly name of the collector to run. If omitted, all identity collectors are processed. |
| unify | Set to true to trigger a unification run immediately after collection completes. |
| force | Set to true to ignore circuit breaker thresholds and force collection regardless of prior run state. |
Headers
Bearer token | |
| Accept | application/json |
| Content-Type | application/json |
Response
Parameters
run-id | The ID assigned to the collection run. When multiple collectors run, this is a CSV of all run IDs. |
run-source-xx | The name of the collector for run ID xx. One key appears per collector that ran. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=collectIdentities&format=json&name=Sample+IDC&unify=true" \
-H "Authorization: Bearer <token>"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "collectIdentities",
"format": "json",
"name": "Sample IDC",
"unify": "true"
}
headers = {
'Authorization': 'Bearer <token>'
}
response = requests.get(url, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code {response.status_code}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
cmd: "collectIdentities",
format: "json",
name: "Sample IDC",
unify: "true"
};
const headers = {
'Authorization': 'Bearer <token>'
};
axios.get(url, { params, headers })
.then(response => {
if (response.status === 200) {
console.log(response.data);
} else {
console.log(`Request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error('Error:', error);
});
Response
- 200 (Properties)
- 200 (JSON)
- 200 Multiple
- 401 Invalid Token
- 404 Invalid name
- 409 Already Running
Default format when format is omitted.
run-id=1001
run-source-1001=Sample IDC
{
"data": {
"type": "collectIdentities",
"run-id": "1001",
"run-source-1001": "Sample IDC"
}
}
Returned when no name is specified and all identity collectors run. run-id is a CSV of all run IDs.
{
"data": {
"type": "collectIdentities",
"run-id": "1001,1002,1003",
"run-source-1001": "Sample IDC 1",
"run-source-1002": "Sample IDC 2",
"run-source-1003": "Sample IDC 3"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The token is not valid for the command 'collectIdentities'. Token is invalid or expired</body>
</html>
Returned when the name value does not match any identity collector.
<html>
<head>
<title>Error</title>
</head>
<body>Error running a collection for the identity collector InvalidName
Query String=cmd=collectIdentities&format=json&name=InvalidName</body>
</html>
Returned when identity collection or unification is already queued or in progress.
<html>
<head>
<title>Error</title>
</head>
<body>Cannot schedule Identity Collections and/or Unification because they are already in the queue for processing
Query String=cmd=collectIdentities&format=json&unify=true</body>
</html>
Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.