# getRole

> Function getRole in pulumi-posthog.

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

Function getRole in pulumi-posthog.

Invoke token: `posthog:index/getRole:getRole`.

## 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 posthog from "pulumi-posthog"

const result = await posthog.getRole({
  name: "<name>",
})
```

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

## Arguments

| Property         | Type     | Required | Description |
| ---------------- | -------- | -------- | ----------- |
| `name`           | `string` | yes      |             |
| `organizationId` | `string` | no       |             |

## Result

| Property         | Type     | Always present | Description |
| ---------------- | -------- | -------------- | ----------- |
| `createdAt`      | `string` | yes            |             |
| `createdBy`      | `string` | yes            |             |
| `id`             | `string` | yes            |             |
| `name`           | `string` | yes            |             |
| `organizationId` | `string` | yes            |             |
