mixpanel_custom_role (Resource)¶
Manages a Mixpanel custom role — a named set of permissions that can be assigned to users within a project or organization.
Example Usage¶
resource "mixpanel_custom_role" "analyst" {
project_id = 1234567
name = "Data Analyst"
description = "Custom role for data analysts with read-only access"
permissions = [
"view_reports",
"view_data",
"export_data"
]
}
Permissions¶
The permissions attribute accepts a list of permission strings. Valid permissions depend on your Mixpanel plan and the permission model in use. The API does not enforce a closed set at the Terraform layer; the Mixpanel backend validates permissions when the role is created or updated. If you supply an unrecognized permission, the API will reject it with an error.
Schema¶
Required¶
description(String)name(String)
Optional¶
copied_from_role_id(String)permissions(List of String)project_id(Number)
Read-Only¶
created(String)created_by_user_id(Number)is_default(Boolean)modified(String)role_id(String)
Import¶
Import using the composite identifier PROJECT_ID:ROLE_ID: