# getProjectIdentity

> Function getProjectIdentity in pulumi-infisical.

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

Function getProjectIdentity in pulumi-infisical.

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

## 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.getProjectIdentity({
  identityId: "<identityId>",
  projectId: "<projectId>",
})
```

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

## Arguments

| Property     | Type     | Required | Description |
| ------------ | -------- | -------- | ----------- |
| `identityId` | `string` | yes      |             |
| `projectId`  | `string` | yes      |             |

## Result

| Property       | Type                       | Always present | Description |
| -------------- | -------------------------- | -------------- | ----------- |
| `identityId`   | `string`                   | yes            |             |
| `membershipId` | `string`                   | yes            |             |
| `projectId`    | `string`                   | yes            |             |
| `roles`        | `GetProjectIdentityRole[]` | yes            |             |

## `GetProjectIdentityRole`

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

| Property                   | Type      | Always present | Description                                                          |
| -------------------------- | --------- | -------------- | -------------------------------------------------------------------- |
| `customRoleId`             | `string`  | yes            | The ID of the custom role, if applicable.                            |
| `id`                       | `string`  | yes            | The ID of the project identity role.                                 |
| `isTemporary`              | `boolean` | yes            | Flag to indicate whether the assigned role is temporary.             |
| `roleSlug`                 | `string`  | yes            | The slug of the role.                                                |
| `temporaryAccessEndTime`   | `string`  | yes            | ISO time at which temporary access ends. Null for permanent roles.   |
| `temporaryAccessStartTime` | `string`  | yes            | ISO time at which temporary access begins. Null for permanent roles. |
| `temporaryMode`            | `string`  | yes            | Type of temporary access given. Null for permanent roles.            |
| `temporaryRange`           | `string`  | yes            | TTL for the temporary access. Null for permanent roles.              |
