Administration Audit Events
  • 24 Jul 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Administration Audit Events

  • Dark
    Light
  • PDF

Article summary

Get
/api/1.0/audit-admin/{envId}

The GET Admin Audit Events method retrieves administrative audit events within a specific environment. Fetching Admin Audit Events is contextual to a specific environment, allowing customers to audit their different environments based on their unique governance and regulatory requirements. Access to this API requires an Environment Admin Role.

Notice

Accessing the Policy Management APIs is through a dedicated domain/URL, according to your PlainID Tenant Location
  • United States (US) - https://api.us1.plainid.io
  • Canada (CA) - https://api.ca1.plainid.io
  • Europe (EU) - https://api.eu1.plainid.io
  • Local PAA - https://api.plainid.local

  • cURL Sample Guidelines

    In order for the relevant parameters to appear in the cURL sample, you can input the values in the interactive API console on the right. They will then appear in the cURL sample on the bottom of the page in the correct format.

    Security
    HTTP
    Type bearer

    For more details about Administration API Authentication, check out the Authentication APIs documentation. Provide your bearer token in the Authorization header when making requests to protected resources. Example: Authorization: Bearer 123

    Path parameters
    envId
    string (uuid) Required

    This parameter is not required.
    The envId parameter can be omitted if Administration Audit records are being fetched at the Tenant level. If fetching at the Tenant level, ensure that you remove the path parameter from your API tool after importing the cURL sample.

    The Environment ID can be found under the Details tab in the Environment Settings.

    Query parameters
    limit
    integer
    Maximum1000
    Minimum1
    Default"50"
    offset
    integer
    Minimum0
    Default"0"
    filter[timestamp][gt]
    integer

    Timestamp is in epoch time

    filter[timestamp][gte]
    integer
    filter[timestamp][lt]
    integer
    filter[timestamp][lte]
    integer
    filter[action][eq]
    string
    filter[action][ne]
    string
    filter[action][like]
    string
    filter[action][ilike]
    string
    filter[action][not-like]
    string
    filter[resourceType][eq]
    string
    filter[resourceType][ne]
    string
    filter[resourceType][like]
    string
    filter[resourceType][ilike]
    string
    filter[resourceType][not-like]
    string
    filter[resourceId][eq]
    string

    ID of a specific object

    filter[resourceId][ne]
    string
    filter[parentObjectType][eq]
    string
    filter[parentObjectType][ne]
    string
    filter[parentObjectType][like]
    string
    filter[parentObjectType][ilike]
    string
    filter[parentObjectType][not-like]
    string
    filter[parentObjectName][eq]
    string
    filter[parentObjectName][ne]
    string
    filter[parentObjectName][like]
    string
    filter[parentObjectName][ilike]
    string
    filter[parentObjectName][not-like]
    string
    filter[parentObjectId][eq]
    string
    filter[parentObjectId][ne]
    string
    filter[userId][eq]
    string

    userId is the IDP userId used to log in to the tenant

    filter[userId][ne]
    string
    sort[action]
    string
    Valid values[ "\"ASC\"", "\"DESC\"" ]
    sort[timestamp]
    string
    Valid values[ "\"ASC\"", "\"DESC\"" ]
    Responses
    200

    List of administration audit events log

    Expand All
    object
    data
    Array of object (auditAdminLog)
    object
    Example{ "action": "UPDATE", "additionalData": null, "id": "a2f799d0-7592-45e7-aef7-8e89fd7e66df", "newValue": { "adminDefault": false, "authDomain": "ADVANCED", "authWsId": "65119971-1e7c-4121-a57f-2daf90e820d2", "completed": null, "createdTime": 1692703690054, "description": "qaqaqa", "externalId": "6f69e5d3-9efb-487b-a1b6-ed00676af34c", "id": "6f69e5d3-9efb-487b-a1b6-ed00676af34c", "isActive": true, "metadata": null, "name": "yair", "restricted": true, "sectionsStatuses": null, "type": "BASIC", "updatedTime": 1692861290496 }, "oldValue": { "adminDefault": false, "authDomain": "ADVANCED", "authWsId": "65119971-1e7c-4121-a57f-2daf90e820d2", "completed": null, "createdTime": 1692703690054, "description": "qaqaqa", "externalId": "6f69e5d3-9efb-487b-a1b6-ed00676af34c", "id": "6f69e5d3-9efb-487b-a1b6-ed00676af34c", "isActive": true, "metadata": null, "name": "yair", "restricted": false, "sectionsStatuses": null, "type": "BASIC", "updatedTime": 1692703690054 }, "parentObjectId": "3494e75d-12b3-48ce-916c-1e321ad61bf6", "parentObjectName": "auth1", "parentObjectType": "AUTHZ_WS", "resourceId": "3494e75d-12b3-48ce-916c-1e321ad61bf6", "resourceName": "testPolicy", "resourceType": "ROLE", "timestamp": 1693001401, "userId": "john.doe@plainid.com" }
    action
    string
    Max length100
    additionalData
    object | null
    id
    string
    newValue
    object
    oldValue
    object
    parentObjectId
    string (uuid)
    parentObjectName
    string
    parentObjectType
    string
    resourceId
    string (uuid)
    resourceName
    string
    resourceType
    string
    timestamp
    integer
    userId
    string
    limit
    integer
    Maximum50
    Minimum0
    offset
    integer
    Minimum0
    Default"0"
    total
    integer

    Total number of items

    Minimum0
    400

    Bad request

    Expand All
    object
    args
    object
    path
    string
    code
    string
    id
    string
    message
    string
    name
    string
    status
    integer
    403

    Operation GET for resource AuditLog is not permitted due to the current user's lack of permissions.

    Expand All
    object
    args
    object
    path
    string
    code
    string
    id
    string
    message
    string
    name
    string
    status
    integer

    Was this article helpful?