# AccessControl

> Resource AccessControl in pulumi-posthog.

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

Resource AccessControl in pulumi-posthog.

Pulumi type: `posthog:index/accessControl:AccessControl`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## 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 resource = new posthog.AccessControl("accessControl", {
  accessLevel: "<accessLevel>",
  resource: "<resource>",
})
```

## Arguments

| Property             | Type     | Required | Description                                                                                                                                                                                                                                                                                              |
| -------------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accessLevel`        | `string` | yes      | The access level to grant. Common values are `none`, `viewer`, `editor`.                                                                                                                                                                                                                                 |
| `organizationMember` | `string` | no       | The organization member ID to grant access to (either `organizationMemberId` from `posthog.getUser` data source, or `posthog_organization_member.<name>.id`). Mutually exclusive with `role`. If neither `role` nor `organizationMember` is set, this becomes the project default for the resource type. |
| `projectId`          | `string` | no       | Project ID (environment) for this resource. Overrides the provider-level project_id.                                                                                                                                                                                                                     |
| `resource`           | `string` | yes      | The resource type to control access for. Valid values include: `action`, `alert`, `annotation`, `cohort`, `dashboard`, `experiment`, `featureFlag`, `insight`, `notebook`, `sessionRecording`, `survey`, etc.                                                                                            |
| `resourceId`         | `string` | no       | The ID of a specific resource to control access for. If omitted, the access control applies to all resources of the specified type.                                                                                                                                                                      |
| `role`               | `string` | no       | The UUID of the role to grant access to. Mutually exclusive with `organizationMember`. If neither `role` nor `organizationMember` is set, this becomes the project default for the resource type.                                                                                                        |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property             | Type     | Computed | Description                                                                                                                                                                                                                                                                                              |
| -------------------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accessLevel`        | `string` | no       | The access level to grant. Common values are `none`, `viewer`, `editor`.                                                                                                                                                                                                                                 |
| `createdAt`          | `string` | yes      | Timestamp when the access control was created.                                                                                                                                                                                                                                                           |
| `organizationMember` | `string` | no       | The organization member ID to grant access to (either `organizationMemberId` from `posthog.getUser` data source, or `posthog_organization_member.<name>.id`). Mutually exclusive with `role`. If neither `role` nor `organizationMember` is set, this becomes the project default for the resource type. |
| `projectId`          | `string` | no       | Project ID (environment) for this resource. Overrides the provider-level project_id.                                                                                                                                                                                                                     |
| `resource`           | `string` | no       | The resource type to control access for. Valid values include: `action`, `alert`, `annotation`, `cohort`, `dashboard`, `experiment`, `featureFlag`, `insight`, `notebook`, `sessionRecording`, `survey`, etc.                                                                                            |
| `resourceId`         | `string` | no       | The ID of a specific resource to control access for. If omitted, the access control applies to all resources of the specified type.                                                                                                                                                                      |
| `role`               | `string` | no       | The UUID of the role to grant access to. Mutually exclusive with `organizationMember`. If neither `role` nor `organizationMember` is set, this becomes the project default for the resource type.                                                                                                        |
| `updatedAt`          | `string` | yes      | Timestamp when the access control was last updated.                                                                                                                                                                                                                                                      |
