# getIdentity

> Function getIdentity in pulumi-infisical.

<!-- Generated from the pulumi-infisical SDK. -->

Function getIdentity in pulumi-infisical.

Invoke token: `infisical:index/getIdentity:getIdentity`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as infisical from "pulumi-infisical"

const result = await infisical.getIdentity()
```

`getIdentityOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property | Type     | Required | Description |
| -------- | -------- | -------- | ----------- |
| `id`     | `string` | no       |             |
| `name`   | `string` | no       |             |

## Result

| Property              | Type                    | Always present | Description |
| --------------------- | ----------------------- | -------------- | ----------- |
| `authModes`           | `string[]`              | yes            |             |
| `customRoleId`        | `string`                | yes            |             |
| `hasDeleteProtection` | `boolean`               | yes            |             |
| `id`                  | `string`                | yes            |             |
| `metadatas`           | `GetIdentityMetadata[]` | yes            |             |
| `name`                | `string`                | yes            |             |
| `orgId`               | `string`                | yes            |             |
| `role`                | `string`                | yes            |             |

## `GetIdentityMetadata`

Output object `GetIdentityMetadata`. Fields below belong to this object.

| Property | Type     | Always present | Description                     |
| -------- | -------- | -------------- | ------------------------------- |
| `key`    | `string` | yes            | The key of the metadata entry   |
| `value`  | `string` | yes            | The value of the metadata entry |
