Certification campaign report

Hi Team,

I am trying to develop a campaign decision report but prior to that I am doing some basic analysis with Postman for below end point.

Could some one please assist?

https://abc.api.identitynow.com/v2025/certifications/:id

I am getting ID from URL

https://abc.identitynow.com/ui/a/admin/certifications/campaigns-list/active-campaigns/465462226484a2a869553d1e735e9de

But I am getting response as below in API request

{
“detailCode”: “404 Not found”,
“trackingId”: “a2277150dcfb49ee88a47f5f16121307”,
“messages”: [
{
“locale”: “und”,
“localeOrigin”: “REQUEST”,
“text”: “The server did not find a current representation for the target resource.”
},
{
“locale”: “en-US”,
“localeOrigin”: “DEFAULT”,
“text”: “The server did not find a current representation for the target resource.”
}
],
“causes”:
}

Hello Baji,

The ID in your campaign URL is the campaign ID, not a certification ID. GET /v2025/certifications/{id} expects the ID of an individual reviewer’s certification under that campaign, so passing the parent campaign ID from /active-campaigns/{campaignId} will give you a 404.

Try listing the certifications under your campaign first:

GET /v2025/certifications?filters=campaign.id eq "{campaignId}"

Then use the id values from that response with:

GET /v2025/certifications/{id}/access-review-items

The /access-review-items call should get you the decision-level data you need for the report.

The docs note that the /certifications APIs don’t support certifications assigned to governance groups. If your campaign uses governance group reviewers, that may affect what you can pull here.

Hi @bsayya01 ,

Could you please elaborate how you are getting id from URL?

Mentioned API accepts id of certifications.

This id you can get from Certification tab not from Admin–> Campaigns tab.

I am getting 2020 success response for this API → https://abc.api.identitynow.com/v2025/certifications/:id

Hi Harish,

Your inputs are much helpful.

Can we build a PowerShell by passing entitlement ID as input and get the certification report?

If so could you please provide me rough idea of how to achieve this?

Yes, you can build this in PowerShell, but I would not start with only the entitlement ID.

The flow would be:

  1. Pass in the campaign ID and entitlement ID

  2. Get all certifications under that campaign:

GET /v2025/certifications?filters=campaign.id eq "{campaignId}"
  1. Loop through each certification ID

  2. For each certification, pull review items:

GET /v2025/certifications/{certificationId}/access-review-items
  1. Filter the returned review items where the entitlement/access item ID matches your input entitlement ID

  2. Export the results to CSV/Excel with identity, reviewer, decision, comments, completed status, etc.

Thanks all for your help on this topic
Much appreciated :slight_smile:

you are very welcome!