Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 1.21 KB

File metadata and controls

8 lines (5 loc) · 1.21 KB

cloudfoundry_org_role

Provides a Cloud Foundry resource for assigning org roles. Roles of type are assigned to the individual user. V3 api has clear well-defined separate API's for roles and users and the innumerous endpoints for different roles at both space and org level have been removed. One just needs to specify the necessary type now for a particular user as a query while specifying the role. For specifying multiple role types for multiple users, one can create multiple resources now.

SAP Cloud Foundry Provider Community Cloud Foundry Provider
resource "cloudfoundry_org_role" "om1" {
for_each = tolist(["username1","username2"])
org = "organization-id"
username = each.value
type = "organization_billing_manager"
}

resource "cloudfoundry_org_role" "oa1" {
org = "organization-id"
username = "username"
type = "organization_auditor"
}

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