attachmentActivity

Contents

This query allows administrators to access all attachment activity (uploads, downloads, removals, and deletions) within their enterprise.

This query is only accessible to Shibumi enterprise administrators. Other users will receive an error when attempting to run this query.

Results are sorted by the time at which the activity took place, with the most recent activity first.

Query

attachmentActivity (Connection to AttachmentAudit)
Look up attachment activity audit history. This query has a maximum page size of 100 items.

Argument Type Description
first Int! See Pagination.
after Int! See Pagination.
earliest String Only fetch attachment activity after this date / time. See Date Values for the expected format.
latest String Only fetch attachment activity before this date / time. See Date Values for the expected format.
activityType AttachmentActivityType Only fetch attachment activity of a certain type (upload, download, removal, or deletion)
username String Only fetch attachment activity done by a specified user
systemId String Only fetch attachment activity done on a specific object with given UUID.
itemName String Only fetch attachment activity done on objects with a specific name
workItem WorkItemReference Only fetch attachment activity done on a specific work item

Example

query {
  attachmentActivity(activityType: upload, username: "[email protected]", first: 100) {
    nodes {
      user {
        emailAddress
      },
      timestamp,
      activity,
      url
    }
  }
}
{
  "data": {
    "attachmentActivity": {
      "nodes": [
        {
          "user": {
            "emailAddress" : "[email protected]"
          },
          "timestamp": "2019-08-26T20:32:02.515Z",
          "activity": "upload",
          "url": "http://app.shibumi.com/shibumi/0000-0000-00000/documents/1111-1111-11111?file=text.txt&contextId=2222-2222-22222"
        },
        {
          "user": {
            "emailAddress" : "[email protected]"
          },
          "timestamp": "2019-08-27T20:32:02.515Z",
          "activity": "upload",
          "url": "http://app.shibumi.com/shibumi/0000-0000-00000/documents/1234-5678-9101112?file=text2.txt&contextId=2222-2222-22222"
        }
      ]
    }
  }
}
Updated on September 24, 2025

Related Articles