Share all details related to your problem, including any error messages you may have received.
Hi All,
I am trying to get the list of actively running Tasks, Workflow, Users logged in, and pending access requests in the system. If anyone has sample code or information please share.
You can use the Access Request Status Report with status filter as Pending to get pending access request. You can leverage the Administrator Console (Gear Icon β Administrator Console - > Tasks ) . All the tasks under Active Tasks are pending. You can leverage the filter option to different type of pending tasks.
You can use the below code snippet if you want to get the pending task details via rule.
if you want to pull actively running task the filter on live = true
List liveTaskResults = new ArrayList();
QueryOptions queryOptions = new QueryOptions();
queryOptions.addFilter(Filter.eq(βliveβ,true));
Iterator trItr = context.search(TaskResult.class,queryOptions);
while(trItr.hasNext()){
TaskResult tr = trItr.next();
liveTaskResults.add(tr.getName());
}
return liveTaskResults;
Hi @Learner,
For finding out the logged in users
you can enable the Audit configuration from global settings
Global settings β Audit configuration β General Actions β Login (you can select this option)
once done from Adv analytics via Audit search type you can select the action as Login and find out the users who are logged into the identityiq system.(You can save the search result as a report and generate this the logged in user data as a report.