Skip to content

resource_org_users

ArthurHlt edited this page Dec 11, 2019 · 2 revisions

cloudfoundry_org_users

Provides a Cloud Foundry resource for managing Cloud Foundry organizations members.

~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions. ~> NOTE: Only modify users managed in the resource, and ignore any existing other users provisioned elsewhere if not using force attribute.

Example Usage

The following example creates an org with a specific org-wide quota.

resource "cloudfoundry_org_users" "ou1" {
    org              = "organization-id"
    managers         = ["user-guid"]
    billing_managers = ["user-guid"]
    auditors         = ["user-guid"]
}

Argument Reference

The following arguments are supported:

  • org - (Required) Organization associated guid.
  • managers - (Optional) List of users to assign OrgManager role to. By default, no managers are assigned.
  • billing_managers - (Optional) List of ID of users to assign BillingManager role to. By default, no billing managers are assigned.
  • auditors - (Optional) List of ID of users to assign OrgAuditor role to. By default, no auditors are assigned.
  • force - (Optional, Boolean) Set to true to enforce that users defined here will be only theses users defined (remove users roles from external modification).

Import

An existing Users list can be imported using its organization guid, e.g.

$ terraform import cloudfoundry_org_users.ou1 org-guid
Clone this wiki locally