# owner in CQL (Confluence): syntax and examples

URL: https://goingstellar.ro/reference/cql/owner-field/

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

- `value`: An 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 2026-11-29.

```
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 2026-11-29.

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

Lists the runbooks you are responsible for. Run on Confluence Cloud on 2026-11-29.

```
owner.fullname ~ "alana"
```

Finds content owned by people whose full name contains a word, without looking up the accountId. Run on Confluence Cloud on 2026-11-29.

```
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 2026-11-29.

## 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.

## Related

- [currentUser()](https://goingstellar.ro/reference/cql/currentuser/)
- [creator](https://goingstellar.ro/reference/cql/creator-field/)
- [contributor](https://goingstellar.ro/reference/cql/contributor-field/)
- [lastmodified](https://goingstellar.ro/reference/cql/lastmodified-field/)
- [type](https://goingstellar.ro/reference/cql/type-field/)
- [watcher](https://goingstellar.ro/reference/cql/watcher-field/)

## Sources

- [CQL fields (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-fields/)

