GET Security Audit Collections ID

The GET /Security/Audit/Collections/{id} operation returns the list of security roles and permissions defined for the specified certificate collectionClosed The certificate search function allows you to query the Keyfactor Command database for certificates from any available source based on any criteria of the certificates and save the results as a collection that will be available in other places in the Management Portal (for example expiration alerts and certain reports).. On success, the operation returns HTTP 200 OK with  details of the security roles and permissions for the collection.

Note:  Roles granted permissions to collections via the global certificate collections permissions (system-wide collection permissions) rather than on a collection-by-collection basis are included in the AreaPermissions response. The AreaPermissions includes both permissions granted to the role globally and permissions granted on a collection-by-collection basis just to the requested collection. The operation does differentiate between the sources for the permission in the output.

See also GET Security Roles ID Permissions Collections to list permissions on certificate collections for a specified security role.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/security/read/

Table 730: GET Security Audit Collections {id} Input Parameters

Name In Description
id Path

An integer indicating the Keyfactor Command reference ID of the certificate collection for which to retrieve permission information.

Use the GET Certificate Collections operation to determine the ID of the certificate collection you wish to evaluate.

Table 731: GET Security Audit Collections {id} Response Data

Name Description
QueryId An integer indicating the Keyfactor Command reference ID of the certificate collection.
AccessControlList

An array of objects containing the permissions granted to the role in a comma-separated list of arrays. See Certificate Collection Permissions for an overview of the possible permissions.ClosedShow access control list details.

For example:

Copy
"AccessControlList": [
  {
    "RoleId": 1,
    "AreaPermissions": [
      4,
      5,
      7,
      8,
      41,
      71
    ]
  },
  {
    "RoleId": 2,
      "AreaPermissions": []
  },
  {
    "RoleId": 3,
    "AreaPermissions": [
      4,
      5
    ]
  },
  {
    "RoleId": 4,
    "AreaPermissions": [
      4,
      7
    ]
  },
  {
    "RoleId": 5,
    "AreaPermissions": [
      8
    ]
  },
  {
    "RoleId": 6,
    "AreaPermissions": [
      41,
      71,
      5,
      4,
      7,
      8
    ]
  },
  {
    "RoleId": 7,
    "AreaPermissions": [
      4,
      8
    ]
  }
]
AssignableRoles

An array of objects containing the security roles defined in Keyfactor Command. ClosedShow role details.

For example:

Copy
"AssignableRoles": [
  {
    "RoleId": 1,
    "Name": "Administrator"
  },
  {
    "RoleId": 2,
    "Name": "Reporting API Access"
  },
  {
    "RoleId": 3,
    "Name": "Power Users"
  },
  {
    "RoleId": 4,
    "Name": "Read Only"
  },
  {
    "RoleId": 5,
    "Name": "Revokers"
  },
  {
    "RoleId": 6,
    "Name": "My Admins"
  },
  {
    "RoleId": 7,
    "Name": "Orchestrator Renewal"
  }
]