---
title: "Get Identities Operation"
url: "https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/get-identities"
version: "6.2"
language: "java"
---

# Get Identities Operation

> Client language: Java. Also available for [C#](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/get-identities.md), [Python](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/get-identities.python.md), [PHP](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/get-identities.php.md), [Node.js](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/get-identities.nodejs.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

**GetIdentitiesOperation** is used to return a dictionary which maps from the collection name to the identity value.

## Syntax

```java
public GetIdentitiesOperation()
```

## Example

```java
Map<String, Long> identities
  = store.maintenance().send(new GetIdentitiesOperation());
```

## See also

- [Working with Document Identifiers](https://docs.ravendb.net/6.2/client-api/document-identifiers/working-with-document-identifiers.md)
- [Global ID Generation Conventions](https://docs.ravendb.net/6.2/client-api/configuration/identifier-generation/global.java.md)
- [Type-specific ID Generation Conventions](https://docs.ravendb.net/6.2/client-api/configuration/identifier-generation/type-specific.java.md)
- [Document Identifier Generation](https://docs.ravendb.net/6.2/server/kb/document-identifier-generation.md#identity-id)
- [Document Identifier Generation](https://docs.ravendb.net/6.2/server/kb/document-identifier-generation.md)
- [What are Operations](https://docs.ravendb.net/6.2/client-api/operations/what-are-operations.java.md)
- [Seed identity](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/seed-identity.md)
- [Increment next identity](https://docs.ravendb.net/6.2/client-api/operations/maintenance/identities/increment-next-identity.md)
