published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
Provides a resource for adding or removing a user from various UAA origin store groups. If user already present in a particular group, no action will be taken
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const myUserGroups = new cloudfoundry.UserGroups("my_user_groups", {
user: "ad6bb1e0-05f6-4440-9485-6fe20b38c500",
origin: "uaa",
groups: [
"cloud_controller.admin",
"scim.read",
"scim.write",
],
});
import pulumi
import pulumi_cloudfoundry as cloudfoundry
my_user_groups = cloudfoundry.UserGroups("my_user_groups",
user="ad6bb1e0-05f6-4440-9485-6fe20b38c500",
origin="uaa",
groups=[
"cloud_controller.admin",
"scim.read",
"scim.write",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfoundry.NewUserGroups(ctx, "my_user_groups", &cloudfoundry.UserGroupsArgs{
User: pulumi.String("ad6bb1e0-05f6-4440-9485-6fe20b38c500"),
Origin: pulumi.String("uaa"),
Groups: pulumi.StringArray{
pulumi.String("cloud_controller.admin"),
pulumi.String("scim.read"),
pulumi.String("scim.write"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var myUserGroups = new Cloudfoundry.UserGroups("my_user_groups", new()
{
User = "ad6bb1e0-05f6-4440-9485-6fe20b38c500",
Origin = "uaa",
Groups = new[]
{
"cloud_controller.admin",
"scim.read",
"scim.write",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudfoundry.UserGroups;
import com.pulumi.cloudfoundry.UserGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myUserGroups = new UserGroups("myUserGroups", UserGroupsArgs.builder()
.user("ad6bb1e0-05f6-4440-9485-6fe20b38c500")
.origin("uaa")
.groups(
"cloud_controller.admin",
"scim.read",
"scim.write")
.build());
}
}
resources:
myUserGroups:
type: cloudfoundry:UserGroups
name: my_user_groups
properties:
user: ad6bb1e0-05f6-4440-9485-6fe20b38c500
origin: uaa
groups:
- cloud_controller.admin
- scim.read
- scim.write
Example coming soon!
Create UserGroups Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserGroups(name: string, args: UserGroupsArgs, opts?: CustomResourceOptions);@overload
def UserGroups(resource_name: str,
args: UserGroupsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
groups: Optional[Sequence[str]] = None,
origin: Optional[str] = None,
user: Optional[str] = None)func NewUserGroups(ctx *Context, name string, args UserGroupsArgs, opts ...ResourceOption) (*UserGroups, error)public UserGroups(string name, UserGroupsArgs args, CustomResourceOptions? opts = null)
public UserGroups(String name, UserGroupsArgs args)
public UserGroups(String name, UserGroupsArgs args, CustomResourceOptions options)
type: cloudfoundry:UserGroups
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudfoundry_user_groups" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UserGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserGroupsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserGroupsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserGroupsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userGroupsResource = new Cloudfoundry.UserGroups("userGroupsResource", new()
{
Groups = new[]
{
"string",
},
Origin = "string",
User = "string",
});
example, err := cloudfoundry.NewUserGroups(ctx, "userGroupsResource", &cloudfoundry.UserGroupsArgs{
Groups: pulumi.StringArray{
pulumi.String("string"),
},
Origin: pulumi.String("string"),
User: pulumi.String("string"),
})
resource "cloudfoundry_user_groups" "userGroupsResource" {
lifecycle {
create_before_destroy = true
}
groups = ["string"]
origin = "string"
user = "string"
}
var userGroupsResource = new UserGroups("userGroupsResource", UserGroupsArgs.builder()
.groups("string")
.origin("string")
.user("string")
.build());
user_groups_resource = cloudfoundry.UserGroups("userGroupsResource",
groups=["string"],
origin="string",
user="string")
const userGroupsResource = new cloudfoundry.UserGroups("userGroupsResource", {
groups: ["string"],
origin: "string",
user: "string",
});
type: cloudfoundry:UserGroups
properties:
groups:
- string
origin: string
user: string
UserGroups Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UserGroups resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the UserGroups resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing UserGroups Resource
Get an existing UserGroups resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserGroupsState, opts?: CustomResourceOptions): UserGroups@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
groups: Optional[Sequence[str]] = None,
origin: Optional[str] = None,
user: Optional[str] = None) -> UserGroupsfunc GetUserGroups(ctx *Context, name string, id IDInput, state *UserGroupsState, opts ...ResourceOption) (*UserGroups, error)public static UserGroups Get(string name, Input<string> id, UserGroupsState? state, CustomResourceOptions? opts = null)public static UserGroups get(String name, Output<String> id, UserGroupsState state, CustomResourceOptions options)resources: _: type: cloudfoundry:UserGroups get: id: ${id}import {
to = cloudfoundry_user_groups.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Package Details
- Repository
- cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundryTerraform Provider.
published on Friday, Nov 13, 2026 by cloudfoundry