Going Stellar

Home/CQL reference

CQL field

owner in CQL (Confluence): syntax and examples

The owner field finds content that belongs to a given user. Use it for an audit before an account is removed, or to list your own pages that nobody has touched for a while. It takes an accountId, currentUser() or, through a sub-field, a full name.

Syntax

owner = currentUser()
owner = "<accountId>"
owner in ("<accountId>", "<accountId>")
owner.fullname ~ "name"

Arguments

ArgumentWhat it does
valueAn accountId in quotes, or the function currentUser(). The doc also lists full name and public name as ways to find a user.

Works with

  • Operators: =, !=, IN, NOT IN (~, !~, >, >=, <, <= are rejected)
  • Functions: currentUser()
  • Sub-field: owner.fullname accepts ~

Examples

owner = currentUser() AND space = SD AND type = page ORDER BY lastmodified DESC

Shows the pages you own in a space, most recently changed first.

Run on Confluence Cloud on .

owner = currentUser() AND type = page AND lastmodified < now("-12w")

Finds pages you own that nobody edited in the last twelve weeks, a starting list for a review.

Run on Confluence Cloud on .

owner = currentUser() AND type = page AND space = SD AND title ~ "runbook"

Lists the runbooks you are responsible for.

Run on Confluence Cloud on .

owner.fullname ~ "alana"

Finds content owned by people whose full name contains a word, without looking up the accountId.

Run on Confluence Cloud on .

owner in ("99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e", "48293:5s04-XXXX-XXXX-XXXX-d7a9b9d8c9f01")

Collects everything owned by two people, for a handover when they change teams.

Run on Confluence Cloud on .

Pitfalls

  • Owner covers every content type. Without type, owner = currentUser() returns pages, comments and attachments together. Adding type = page keeps the list to pages (checked on Confluence Cloud, November 2026).
  • owner != currentUser() finds content owned by anyone else. It is only useful on a site with several content owners, and it runs without an error when it finds nothing.
  • owner ~ "alana" is rejected because ~ is not supported on the field itself. Use owner.fullname ~ "alana". Full-name matching depends on each user's profile visibility.
  • Owner and creator are separate fields. Use creator when you mean the person who first wrote the content.

Sources

  1. CQL fields (Atlassian Developer, Confluence Cloud)

Markdown version · All CQL pages