> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/analyze-and-export/advanced-search/advanced-search-syntax.md).

# Advanced Search examples

## Users

**Get all German users:**

[`country:DE`](https://portal.realmjoin.com/users/all?search=country%3ADE)

***

**Get all users of a specific department:**

[`department:"Sales Department"`](https://portal.realmjoin.com/users/all?search=department%3A%22Sales%20Department%22)

***

**Get all users with job title CEO:**

[`job:CEO`](https://portal.realmjoin.com/users/all?search=job%3ACEO)

***

**Get all users with job title CEO not in Germany:**

[`job:CEO country!:Germany`](https://portal.realmjoin.com/users/all?search=job%3ACEO%20country!%3AGermany)

***

**Get all users starting with ADM- with an empty department:**

[`name:ADM- department=""`](https://portal.realmjoin.com/users/all?search=name%3AADM-%20department%3D%22%22)

***

**Get all users with postal code 63065:**

[`zip:63065`](https://portal.realmjoin.com/users/all?search=zip%3A63065)

***

**List all users with specific domain:**

[`domain.com`](https://portal.realmjoin.com/users/all?search=domain.com)

***

## Groups

**Get all static groups:**

[`IsStatic:1`](https://portal.realmjoin.com/groups/all?search=IsStatic%3A1)

***

**Get all dynamic groups:**

[`IsStatic:0`](https://portal.realmjoin.com/groups/all?search=IsStatic%3A0)

***

## Devices

**Get all Windows 11 Version 22H2 devices:**

[`os:"Windows 11 (22H2)"`](https://portal.realmjoin.com/devices?search=OS%3D%22Windows%2011%20\(22H2\)%22)

***

**Get all Printers:**

[`OS:Printer`](https://portal.realmjoin.com/devices?compliance=0\&type=0\&search=OS%3APrinter)

***

**Get all Dell XPS devices:**

[`manu:dell model:xps`](https://portal.realmjoin.com/devices?search=manu%3Adell%20model%3Axps)

***

**Get all devices with RealmJoin Version 4.19 installed:**

[`rj:4.19`](https://portal.realmjoin.com/devices?search=rj%3A4.19)

***

**Get all Surface Hubs:**

[`Model:Surface Hub`](https://portal.realmjoin.com/devices?search=Model%3ASurface%20Hub)

***

## Packages

**Get all RealmJoin (basic) packages:**

[`Type:1`](https://portal.realmjoin.com/apps?search=Type%3A1)

***

**Get all Intune (basic) packages:**

[`Type:3`](https://portal.realmjoin.com/apps?search=Type%3A3)

***

**Get all Intune (managed) packages:**

[`Type:5`](https://portal.realmjoin.com/apps?search=Type%3A5)

***

**Get all RealmJoin (managed) packages:**

[`Type:7`](https://portal.realmjoin.com/apps?search=Type%3A7)

***

**Get all Packages with a running preview:**

[`StatusCurrentPreviewVersionParsed:`](https://portal.realmjoin.com/apps?search=StatusCurrentPreviewVersionParsed%3A)

***

**Get all "PreRelease"-Packages (deprecated):**

[`Preview:1`](https://portal.realmjoin.com/apps?search=Preview%3A1)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/analyze-and-export/advanced-search/advanced-search-syntax.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
