Access profile reports with identities information

Hi,

I am using the query below in a Ruby script to fetch the report of the Access profile owner. Additionally, I need to retrieve the identity information associated with those Access profiles. I’ve tried a few approaches, but none have been successful. Can anyone help me with this?

jsonData = {
  "indices": [
    'accessprofiles'
  ],
  "query": {
    "query": @query,
    "fields": [
      @fields
    ]
  },
  "queryResultFilter": { "includes": [
    'name',
    'description',
    'entitlementCount',
    'owner.name',
    'tags',
    'source.name'
  ] }
}.to_json

Thanks,
Harish G

Are you trying to get all of the access profile owners and their details? If so, the /v3/access-profiles endpoint would list them all and would give you the owner details. Example in Postman javascript:


Then use that id to get the identity details via /beta/identities or search:


I am able to get the owner details. I need to fetch the Identities associated with the Accessprofiles.

Thanks,
Harish G

Query (escape the double quotes where needed):
@access(name:\"Birth Right Access\" AND type:\"ACCESS_PROFILE\") @access(name:"Birth Right Access" AND type:"ACCESS_PROFILE")

Then go through each user that has that access profile.

@ethompson - Thanks for your support. Each time I have to enter Access profile details to fetch the identities details. Reporting requirement is - Using Access profile “tags” I need to fetch the Access profiles and its identity details.

Using tag name I am able to fetch the Access profile information but there is no information about identities.

{
  "indices": [
   'accessprofiles'
  ],
  "query": {
    "query": "\"C_Quarter_AO\"",
    "fields": [
      "tags"
    ]
  },
 
  "sort": [
        "id"
    ],
  "queryResultFilter": { "includes": [
    'name',
    'description',
    'entitlementCount',
    'owner.name',
    'tags',
    'source.name'
  ] }
}

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