Uncorrelated Reports

Does anyone know what the API command is for the two below, and can you provide example as to what the body should include if any, so that I can replicate please, as I struggle to understand the Developer community sometimes

  1. Exporting the Uncorrelated report for a Source?

  2. Exporting the Uncorrelated report from Global Reports?

I believe both of those options utilize internal API’s vs. public API’s.

The alternative is using the “Accounts” API and filtering on “uncorrelated”. Additionally you can filter on “sourceId” to restrict this to the source desired.

Hi Adrien

Please refer to this thread/post

If you still have issues, please let me know.

Hi @Jason, sorry these reports I know how to export already. Just trying to figure out the two I have mentioned above more specifically I am looking for.

Certification reports are a different ball game all together and I have managed to resolve that dilemma in the past here: https://community.sailpoint.com/t5/IdentityNow-Forum/Leveraging-Microsoft-Power-Automate-to-enhance-IdentityNow/td-p/232373

But any guidance to specifications of API I can run or any loopholes where I can obtain the same results, then that would be great.

Are there any data values in IDN that will show me what is uncorrelated vs not uncorrelated in a source or what API can I use to extract the original ask if known.

Here’s a link to SailPoint’s documentation for the V3 version of the reports API:

I tried this in Powershell and could not get the Report to download. I got errors with the Content Type so either PowerShell (5 and 7) don’t support that Type, or I’m doing something wrong :smiley:

If you’re fine using the Legacy APIs for Global Reports then this PowerShell command will run the Uncorrelated report:

Invoke-RestMethod -Uri 'https://ORGNAME.identitynow.com/api/globalReports/run/uncorrelated-accounts' -Headers $BearerToken -Method Post

And this command will download the report to a directory on your PC:

$path = "C:\file\path.zip"
$ID = "TASK ID FROM FIRST CALl"
$link = "https://ORGNAME.identitynow.com/api/report/get/$ID?format=csv"
Invoke-RestMethod -Method Get -Uri $link -Headers $BearerToken -OutFile $path

You’ll need to get a Bearer Token to run these. The link to the V3 guides has code to build one if you already have a Token. If you’re not sure how to do that I can show you how to get one using my PowerShell module (more on that later).

As for the Source Specific Uncorrelated Accounts I’m not familiar with any API calls to grab those reports, but @edmarks suggestion of using the Accounts API would work just as well, if not better. And I’ll be publishing an update to my IdnTools PowerShell Module to make this VERY easy. The current version published has issues with the Uncorrelated flag, but I fixed that yesterday so I’ll be updating it in GitHub and the Gallery later today or early tomorrow. Let me know if you’re interested and I can ping you when it’s available.

Hi Derek, I am 100% interested in your IDNTools. Anything I can learn from and utilise to make my life easier is a win. You have consistently helped me to date on my IDN issues and I appreciate the responses. I am going to try the above and see where it takes me! Thank you :slight_smile:

I published an update to the PowerShell Gallery. If you install/update the latest version and run these commands it’ll get you a list of Uncorrelated accounts for a specific Source:

# Sets Env Variable in Windows, enter Org name for your Tenant URL.
Update-IdnConfigSettings -ProdName $Name -SandboxName $SbName -Scope User

# easiest way to create a Credential Object to get a Bearer token
$PAT = Get-Credential
Get-IdnToken -ClientId $PAT.UserName -ClientSecret $PAT.Password

# command to get accounts, command for looking up Soures below if needed
$uncorrs = Get-IdnAccounts -SourceLongId  $Source -Uncorrelated true

$AllSources = Get-IdnSources

let me know if can be of any more help.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.