Hello Michael,
Currently, Adaxes shows you only 1000 latest Approval Requests. The task to show all Approval Requests is in our TODO list.
For now, you can use a PowerShell script that outputs all approved requests that were initiated during the last X days. The number of days is specified by the $daysNumber variable. Here it is:
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
$daysNumber = 30 # TODO: modify me
$admNS = New-Object("Softerra.Adaxes.Adsi.AdmNamespace")
$admService = $admNS.GetServiceDirectly("localhost")
# Bind to the Approval Requests container
$containerPath = $admService.Backend.GetConfigurationContainerPath("ApprovalRequests")
$searcher = $admService.OpenObject($containerPath.ToString(), $NULL, $NULL, 0)
# Get approval requests
$state = 1 # Approved request
#$state = 2 # Denied request
#$state = 3 # Canceled request
$startDateTime = ((Get-Date).AddDays(-$daysNumber)).ToFileTime()
$searcher.SearchFilter = "(&(objectCategory=adm-ApprovalRequest)(adm-ApprovalState=$state)(adm-ApprovalRequestCreationTime>=$startDateTime))"
$searcher.PageSize = 500
$requests = $searcher.ExecuteSearch()
# Iterate through the requests
foreach($request in $requests.FetchAll())
{
$request = $admService.OpenObject($request.AdsPath, $NULL, $NULL, 0)
Write-Host "Date: " $request.CreationDate
Write-Host "Operation:" $request.DescriptionOfOperationToApprove
Write-Host "ProcessedBy:" $request.ProcessedBy.Get("name")
Write-Host "Requestor:" $request.Requestor.Get("name")
Write-Host
}
$requests.Dispose()