# Selectors

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> The part of an object that says which workstations it applies to, and what a selector with no labels matches for each kind.


A **selector** is the part of an object that says which workstations the object applies to.
You put labels on workstations, and the selector names the labels it looks for. Every
workstation that carries those labels gets the object, including workstations created later.

[Configuration layers](https://docs.ringleader.dev/workstations/configuration/configuration-layers/)
shows how to attach a WorkstationConfig by label, whose workstations a selector reaches,
and how wide to make one.

## Empty selector matches

The answer differs by kind, so check this table before you leave a selector empty:

| Kind | Field | With no labels |
|---|---|---|
| [WorkstationConfig](https://docs.ringleader.dev/workstations/configuration/configuration-layers/#attach-a-layer-by-label) | `spec.selector` | Matches nothing. With `ownerScope: true`, it matches every workstation you own in the namespace. |
| [Integration](https://docs.ringleader.dev/workstations/configuration/integration-behavior/#integration-reach) | `spec.selector` | A member's Integration reaches every workstation that member owns. An administrator's reaches nothing. With `ownerScope: true`, it reaches every workstation that administrator owns. |
| [SSHKey](https://docs.ringleader.dev/reference/resources/sshkey/) | `spec.selector` | Matches every workstation. |
| [Identity selection](https://docs.ringleader.dev/cloud-accounts/cloud-identities/selection-defaults/#identity-selection) | `spec.selector` | Matches every workstation on its cloud provider. |
| [LocalBinding](https://docs.ringleader.dev/reference/resources/localbinding/) | `spec.workstationSelector` | Not allowed. Give it labels, or one workstation's name in `matchName`. |

## Next steps
- [Configuration layers](https://docs.ringleader.dev/workstations/configuration/configuration-layers/): selectors, explicit references and the personal layer.
- [Integration reach](https://docs.ringleader.dev/workstations/configuration/integration-behavior/#integration-reach): the rules for an Integration's selector.
- [Roles and grants](https://docs.ringleader.dev/organizations-teams/accounts-access/roles-grants/): ownership, roles and what a member's selector may reach.

