Queries the Confluence search API to find all content created by a specific user.

Datasource

Datasource type

REST Basic

Datasource URL

http://your-confluence-host/rest/api

Datasource Test URL

content

Datasource User

Confluene user for the search

Datasource Password

The user’s password

Query

Query URL

content/search?cql=creator=:creator

Example parameters

  • creator: admin

Raw result

{
    "results": [
        {
            "id": "360466",
            "type": "attachment",
            "status": "current",
            "title": "pie.png",
            "restrictions": {},
            "_links": {
                ...
            },
            "_expandable": {
                ...
            }
        },
        ...
    ],
    "start": 0,
    "limit": 25,
    "size": 11,
    "cqlQuery": "creator=admin",
    "searchDuration": 21,
    "totalSize": 11,
    "_links": {
        ...
    }
}
CODE

Converter

function convert(json) {
    var items = JSON.parse(json).results;
    return items.map(function(item) {
        return {
            'Title': item.title,
            'Page ID': item.id,
            'Content Type': item.type
        };
    });
}
CODE

This will produce something like: