---
title: SubjectTypes
description: Service for querying and reading the subject types stored in OpenAM. Subject condition types describe the JSON representation of subject conditions that you can use in policy definitions
component: pingam
version: 8.1
page_id: pingam:entity-reference:sec-amster-entity-subjecttypes
canonical_url: https://docs.pingidentity.com/pingam/8.1/entity-reference/sec-amster-entity-subjecttypes.html
section_ids:
  sec-amster-entity-subjecttypes-realm-ops: Realm Operations
  sec-amster-entity-subjecttypes-realm-ops-query: query
  sec-amster-entity-subjecttypes-realm-ops-read: read
---

# SubjectTypes

## Realm Operations

Service for querying and reading the subject types stored in OpenAM. Subject condition types describe the JSON representation of subject conditions that you can use in policy definitions

Resource path:

```
/subjecttypes
```

Resource version: `1.0`

### query

Query the list of subject condition types

**Usage**

```
am> query SubjectTypes --realm Realm --filter filter
```

**Parameters**

* *\--filter*

  A CREST formatted query filter, where "true" will query all. Fields that can be queried: \[\*]

### read

Read an individual subject condition type by providing the unique identifier title

**Usage**

```
am> read SubjectTypes --realm Realm --id id
```

**Parameters**

* *\--id*

  The unique identifier for the resource.
