harness.platform.Usergroup
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const ssoTypeSaml = new harness.platform.Usergroup("sso_type_saml", {
identifier: "identifier",
name: "name",
orgId: "org_id",
projectId: "project_id",
linkedSsoId: "linked_sso_id",
externallyManaged: false,
users: ["user_id"],
notificationConfigs: [
{
type: "SLACK",
slackWebhookUrl: "https://google.com",
},
{
type: "EMAIL",
groupEmail: "email@email.com",
sendEmailToAllUsers: true,
},
{
type: "MSTEAMS",
microsoftTeamsWebhookUrl: "https://google.com",
},
{
type: "PAGERDUTY",
pagerDutyKey: "pagerDutyKey",
},
],
linkedSsoDisplayName: "linked_sso_display_name",
ssoGroupId: "sso_group_name",
ssoGroupName: "sso_group_name",
linkedSsoType: "SAML",
ssoLinked: true,
});
const ssoTypeLdap = new harness.platform.Usergroup("sso_type_ldap", {
identifier: "identifier",
name: "name",
orgId: "org_id",
projectId: "project_id",
linkedSsoId: "linked_sso_id",
externallyManaged: false,
users: ["user_id"],
notificationConfigs: [
{
type: "SLACK",
slackWebhookUrl: "https://google.com",
},
{
type: "EMAIL",
groupEmail: "email@email.com",
sendEmailToAllUsers: true,
},
{
type: "MSTEAMS",
microsoftTeamsWebhookUrl: "https://google.com",
},
{
type: "PAGERDUTY",
pagerDutyKey: "pagerDutyKey",
},
],
linkedSsoDisplayName: "linked_sso_display_name",
ssoGroupId: "sso_group_id",
ssoGroupName: "sso_group_name",
linkedSsoType: "LDAP",
ssoLinked: true,
});
// Create user group by adding user emails
const example = new harness.platform.Usergroup("example", {
identifier: "identifier",
name: "name",
orgId: "org_id",
projectId: "project_id",
linkedSsoId: "linked_sso_id",
externallyManaged: false,
userEmails: ["user@email.com"],
notificationConfigs: [
{
type: "SLACK",
slackWebhookUrl: "https://google.com",
},
{
type: "EMAIL",
groupEmail: "email@email.com",
sendEmailToAllUsers: true,
},
{
type: "MSTEAMS",
microsoftTeamsWebhookUrl: "https://google.com",
},
{
type: "PAGERDUTY",
pagerDutyKey: "pagerDutyKey",
},
],
linkedSsoDisplayName: "linked_sso_display_name",
ssoGroupId: "sso_group_name",
ssoGroupName: "sso_group_name",
linkedSsoType: "SAML",
ssoLinked: true,
});
import pulumi
import pulumi_harness as harness
sso_type_saml = harness.platform.Usergroup("sso_type_saml",
identifier="identifier",
name="name",
org_id="org_id",
project_id="project_id",
linked_sso_id="linked_sso_id",
externally_managed=False,
users=["user_id"],
notification_configs=[
{
"type": "SLACK",
"slack_webhook_url": "https://google.com",
},
{
"type": "EMAIL",
"group_email": "email@email.com",
"send_email_to_all_users": True,
},
{
"type": "MSTEAMS",
"microsoft_teams_webhook_url": "https://google.com",
},
{
"type": "PAGERDUTY",
"pager_duty_key": "pagerDutyKey",
},
],
linked_sso_display_name="linked_sso_display_name",
sso_group_id="sso_group_name",
sso_group_name="sso_group_name",
linked_sso_type="SAML",
sso_linked=True)
sso_type_ldap = harness.platform.Usergroup("sso_type_ldap",
identifier="identifier",
name="name",
org_id="org_id",
project_id="project_id",
linked_sso_id="linked_sso_id",
externally_managed=False,
users=["user_id"],
notification_configs=[
{
"type": "SLACK",
"slack_webhook_url": "https://google.com",
},
{
"type": "EMAIL",
"group_email": "email@email.com",
"send_email_to_all_users": True,
},
{
"type": "MSTEAMS",
"microsoft_teams_webhook_url": "https://google.com",
},
{
"type": "PAGERDUTY",
"pager_duty_key": "pagerDutyKey",
},
],
linked_sso_display_name="linked_sso_display_name",
sso_group_id="sso_group_id",
sso_group_name="sso_group_name",
linked_sso_type="LDAP",
sso_linked=True)
# Create user group by adding user emails
example = harness.platform.Usergroup("example",
identifier="identifier",
name="name",
org_id="org_id",
project_id="project_id",
linked_sso_id="linked_sso_id",
externally_managed=False,
user_emails=["user@email.com"],
notification_configs=[
{
"type": "SLACK",
"slack_webhook_url": "https://google.com",
},
{
"type": "EMAIL",
"group_email": "email@email.com",
"send_email_to_all_users": True,
},
{
"type": "MSTEAMS",
"microsoft_teams_webhook_url": "https://google.com",
},
{
"type": "PAGERDUTY",
"pager_duty_key": "pagerDutyKey",
},
],
linked_sso_display_name="linked_sso_display_name",
sso_group_id="sso_group_name",
sso_group_name="sso_group_name",
linked_sso_type="SAML",
sso_linked=True)
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewUsergroup(ctx, "sso_type_saml", &platform.UsergroupArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
OrgId: pulumi.String("org_id"),
ProjectId: pulumi.String("project_id"),
LinkedSsoId: pulumi.String("linked_sso_id"),
ExternallyManaged: pulumi.Bool(false),
Users: pulumi.StringArray{
pulumi.String("user_id"),
},
NotificationConfigs: platform.UsergroupNotificationConfigArray{
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("SLACK"),
SlackWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("EMAIL"),
GroupEmail: pulumi.String("email@email.com"),
SendEmailToAllUsers: pulumi.Bool(true),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("MSTEAMS"),
MicrosoftTeamsWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("PAGERDUTY"),
PagerDutyKey: pulumi.String("pagerDutyKey"),
},
},
LinkedSsoDisplayName: pulumi.String("linked_sso_display_name"),
SsoGroupId: pulumi.String("sso_group_name"),
SsoGroupName: pulumi.String("sso_group_name"),
LinkedSsoType: pulumi.String("SAML"),
SsoLinked: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = platform.NewUsergroup(ctx, "sso_type_ldap", &platform.UsergroupArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
OrgId: pulumi.String("org_id"),
ProjectId: pulumi.String("project_id"),
LinkedSsoId: pulumi.String("linked_sso_id"),
ExternallyManaged: pulumi.Bool(false),
Users: pulumi.StringArray{
pulumi.String("user_id"),
},
NotificationConfigs: platform.UsergroupNotificationConfigArray{
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("SLACK"),
SlackWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("EMAIL"),
GroupEmail: pulumi.String("email@email.com"),
SendEmailToAllUsers: pulumi.Bool(true),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("MSTEAMS"),
MicrosoftTeamsWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("PAGERDUTY"),
PagerDutyKey: pulumi.String("pagerDutyKey"),
},
},
LinkedSsoDisplayName: pulumi.String("linked_sso_display_name"),
SsoGroupId: pulumi.String("sso_group_id"),
SsoGroupName: pulumi.String("sso_group_name"),
LinkedSsoType: pulumi.String("LDAP"),
SsoLinked: pulumi.Bool(true),
})
if err != nil {
return err
}
// Create user group by adding user emails
_, err = platform.NewUsergroup(ctx, "example", &platform.UsergroupArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
OrgId: pulumi.String("org_id"),
ProjectId: pulumi.String("project_id"),
LinkedSsoId: pulumi.String("linked_sso_id"),
ExternallyManaged: pulumi.Bool(false),
UserEmails: pulumi.StringArray{
pulumi.String("user@email.com"),
},
NotificationConfigs: platform.UsergroupNotificationConfigArray{
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("SLACK"),
SlackWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("EMAIL"),
GroupEmail: pulumi.String("email@email.com"),
SendEmailToAllUsers: pulumi.Bool(true),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("MSTEAMS"),
MicrosoftTeamsWebhookUrl: pulumi.String("https://google.com"),
},
&platform.UsergroupNotificationConfigArgs{
Type: pulumi.String("PAGERDUTY"),
PagerDutyKey: pulumi.String("pagerDutyKey"),
},
},
LinkedSsoDisplayName: pulumi.String("linked_sso_display_name"),
SsoGroupId: pulumi.String("sso_group_name"),
SsoGroupName: pulumi.String("sso_group_name"),
LinkedSsoType: pulumi.String("SAML"),
SsoLinked: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var ssoTypeSaml = new Harness.Platform.Usergroup("sso_type_saml", new()
{
Identifier = "identifier",
Name = "name",
OrgId = "org_id",
ProjectId = "project_id",
LinkedSsoId = "linked_sso_id",
ExternallyManaged = false,
Users = new[]
{
"user_id",
},
NotificationConfigs = new[]
{
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "SLACK",
SlackWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "EMAIL",
GroupEmail = "email@email.com",
SendEmailToAllUsers = true,
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "MSTEAMS",
MicrosoftTeamsWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "PAGERDUTY",
PagerDutyKey = "pagerDutyKey",
},
},
LinkedSsoDisplayName = "linked_sso_display_name",
SsoGroupId = "sso_group_name",
SsoGroupName = "sso_group_name",
LinkedSsoType = "SAML",
SsoLinked = true,
});
var ssoTypeLdap = new Harness.Platform.Usergroup("sso_type_ldap", new()
{
Identifier = "identifier",
Name = "name",
OrgId = "org_id",
ProjectId = "project_id",
LinkedSsoId = "linked_sso_id",
ExternallyManaged = false,
Users = new[]
{
"user_id",
},
NotificationConfigs = new[]
{
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "SLACK",
SlackWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "EMAIL",
GroupEmail = "email@email.com",
SendEmailToAllUsers = true,
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "MSTEAMS",
MicrosoftTeamsWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "PAGERDUTY",
PagerDutyKey = "pagerDutyKey",
},
},
LinkedSsoDisplayName = "linked_sso_display_name",
SsoGroupId = "sso_group_id",
SsoGroupName = "sso_group_name",
LinkedSsoType = "LDAP",
SsoLinked = true,
});
// Create user group by adding user emails
var example = new Harness.Platform.Usergroup("example", new()
{
Identifier = "identifier",
Name = "name",
OrgId = "org_id",
ProjectId = "project_id",
LinkedSsoId = "linked_sso_id",
ExternallyManaged = false,
UserEmails = new[]
{
"user@email.com",
},
NotificationConfigs = new[]
{
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "SLACK",
SlackWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "EMAIL",
GroupEmail = "email@email.com",
SendEmailToAllUsers = true,
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "MSTEAMS",
MicrosoftTeamsWebhookUrl = "https://google.com",
},
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
Type = "PAGERDUTY",
PagerDutyKey = "pagerDutyKey",
},
},
LinkedSsoDisplayName = "linked_sso_display_name",
SsoGroupId = "sso_group_name",
SsoGroupName = "sso_group_name",
LinkedSsoType = "SAML",
SsoLinked = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.Usergroup;
import com.pulumi.harness.platform.UsergroupArgs;
import com.pulumi.harness.platform.inputs.UsergroupNotificationConfigArgs;
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 ssoTypeSaml = new Usergroup("ssoTypeSaml", UsergroupArgs.builder()
.identifier("identifier")
.name("name")
.orgId("org_id")
.projectId("project_id")
.linkedSsoId("linked_sso_id")
.externallyManaged(false)
.users("user_id")
.notificationConfigs(
UsergroupNotificationConfigArgs.builder()
.type("SLACK")
.slackWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("EMAIL")
.groupEmail("email@email.com")
.sendEmailToAllUsers(true)
.build(),
UsergroupNotificationConfigArgs.builder()
.type("MSTEAMS")
.microsoftTeamsWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("PAGERDUTY")
.pagerDutyKey("pagerDutyKey")
.build())
.linkedSsoDisplayName("linked_sso_display_name")
.ssoGroupId("sso_group_name")
.ssoGroupName("sso_group_name")
.linkedSsoType("SAML")
.ssoLinked(true)
.build());
var ssoTypeLdap = new Usergroup("ssoTypeLdap", UsergroupArgs.builder()
.identifier("identifier")
.name("name")
.orgId("org_id")
.projectId("project_id")
.linkedSsoId("linked_sso_id")
.externallyManaged(false)
.users("user_id")
.notificationConfigs(
UsergroupNotificationConfigArgs.builder()
.type("SLACK")
.slackWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("EMAIL")
.groupEmail("email@email.com")
.sendEmailToAllUsers(true)
.build(),
UsergroupNotificationConfigArgs.builder()
.type("MSTEAMS")
.microsoftTeamsWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("PAGERDUTY")
.pagerDutyKey("pagerDutyKey")
.build())
.linkedSsoDisplayName("linked_sso_display_name")
.ssoGroupId("sso_group_id")
.ssoGroupName("sso_group_name")
.linkedSsoType("LDAP")
.ssoLinked(true)
.build());
// Create user group by adding user emails
var example = new Usergroup("example", UsergroupArgs.builder()
.identifier("identifier")
.name("name")
.orgId("org_id")
.projectId("project_id")
.linkedSsoId("linked_sso_id")
.externallyManaged(false)
.userEmails("user@email.com")
.notificationConfigs(
UsergroupNotificationConfigArgs.builder()
.type("SLACK")
.slackWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("EMAIL")
.groupEmail("email@email.com")
.sendEmailToAllUsers(true)
.build(),
UsergroupNotificationConfigArgs.builder()
.type("MSTEAMS")
.microsoftTeamsWebhookUrl("https://google.com")
.build(),
UsergroupNotificationConfigArgs.builder()
.type("PAGERDUTY")
.pagerDutyKey("pagerDutyKey")
.build())
.linkedSsoDisplayName("linked_sso_display_name")
.ssoGroupId("sso_group_name")
.ssoGroupName("sso_group_name")
.linkedSsoType("SAML")
.ssoLinked(true)
.build());
}
}
resources:
ssoTypeSaml:
type: harness:platform:Usergroup
name: sso_type_saml
properties:
identifier: identifier
name: name
orgId: org_id
projectId: project_id
linkedSsoId: linked_sso_id
externallyManaged: false
users:
- user_id
notificationConfigs:
- type: SLACK
slackWebhookUrl: https://google.com
- type: EMAIL
groupEmail: email@email.com
sendEmailToAllUsers: true
- type: MSTEAMS
microsoftTeamsWebhookUrl: https://google.com
- type: PAGERDUTY
pagerDutyKey: pagerDutyKey
linkedSsoDisplayName: linked_sso_display_name
ssoGroupId: sso_group_name
ssoGroupName: sso_group_name
linkedSsoType: SAML
ssoLinked: true
ssoTypeLdap:
type: harness:platform:Usergroup
name: sso_type_ldap
properties:
identifier: identifier
name: name
orgId: org_id
projectId: project_id
linkedSsoId: linked_sso_id
externallyManaged: false
users:
- user_id
notificationConfigs:
- type: SLACK
slackWebhookUrl: https://google.com
- type: EMAIL
groupEmail: email@email.com
sendEmailToAllUsers: true
- type: MSTEAMS
microsoftTeamsWebhookUrl: https://google.com
- type: PAGERDUTY
pagerDutyKey: pagerDutyKey
linkedSsoDisplayName: linked_sso_display_name
ssoGroupId: sso_group_id
ssoGroupName: sso_group_name
linkedSsoType: LDAP
ssoLinked: true
# Create user group by adding user emails
example:
type: harness:platform:Usergroup
properties:
identifier: identifier
name: name
orgId: org_id
projectId: project_id
linkedSsoId: linked_sso_id
externallyManaged: false
userEmails:
- user@email.com
notificationConfigs:
- type: SLACK
slackWebhookUrl: https://google.com
- type: EMAIL
groupEmail: email@email.com
sendEmailToAllUsers: true
- type: MSTEAMS
microsoftTeamsWebhookUrl: https://google.com
- type: PAGERDUTY
pagerDutyKey: pagerDutyKey
linkedSsoDisplayName: linked_sso_display_name
ssoGroupId: sso_group_name
ssoGroupName: sso_group_name
linkedSsoType: SAML
ssoLinked: true
Create Usergroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Usergroup(name: string, args: UsergroupArgs, opts?: CustomResourceOptions);
@overload
def Usergroup(resource_name: str,
args: UsergroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Usergroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
linked_sso_display_name: Optional[str] = None,
linked_sso_id: Optional[str] = None,
linked_sso_type: Optional[str] = None,
name: Optional[str] = None,
externally_managed: Optional[bool] = None,
description: Optional[str] = None,
notification_configs: Optional[Sequence[UsergroupNotificationConfigArgs]] = None,
sso_group_id: Optional[str] = None,
sso_group_name: Optional[str] = None,
sso_linked: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
user_emails: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None)
func NewUsergroup(ctx *Context, name string, args UsergroupArgs, opts ...ResourceOption) (*Usergroup, error)
public Usergroup(string name, UsergroupArgs args, CustomResourceOptions? opts = null)
public Usergroup(String name, UsergroupArgs args)
public Usergroup(String name, UsergroupArgs args, CustomResourceOptions options)
type: harness:platform:Usergroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UsergroupArgs
- 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 UsergroupArgs
- 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 UsergroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsergroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsergroupArgs
- 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 usergroupResource = new Harness.Platform.Usergroup("usergroupResource", new()
{
Identifier = "string",
OrgId = "string",
ProjectId = "string",
LinkedSsoDisplayName = "string",
LinkedSsoId = "string",
LinkedSsoType = "string",
Name = "string",
ExternallyManaged = false,
Description = "string",
NotificationConfigs = new[]
{
new Harness.Platform.Inputs.UsergroupNotificationConfigArgs
{
GroupEmail = "string",
MicrosoftTeamsWebhookUrl = "string",
PagerDutyKey = "string",
SendEmailToAllUsers = false,
SlackWebhookUrl = "string",
Type = "string",
},
},
SsoGroupId = "string",
SsoGroupName = "string",
SsoLinked = false,
Tags = new[]
{
"string",
},
UserEmails = new[]
{
"string",
},
Users = new[]
{
"string",
},
});
example, err := platform.NewUsergroup(ctx, "usergroupResource", &platform.UsergroupArgs{
Identifier: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
LinkedSsoDisplayName: pulumi.String("string"),
LinkedSsoId: pulumi.String("string"),
LinkedSsoType: pulumi.String("string"),
Name: pulumi.String("string"),
ExternallyManaged: pulumi.Bool(false),
Description: pulumi.String("string"),
NotificationConfigs: platform.UsergroupNotificationConfigArray{
&platform.UsergroupNotificationConfigArgs{
GroupEmail: pulumi.String("string"),
MicrosoftTeamsWebhookUrl: pulumi.String("string"),
PagerDutyKey: pulumi.String("string"),
SendEmailToAllUsers: pulumi.Bool(false),
SlackWebhookUrl: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
SsoGroupId: pulumi.String("string"),
SsoGroupName: pulumi.String("string"),
SsoLinked: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UserEmails: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var usergroupResource = new Usergroup("usergroupResource", UsergroupArgs.builder()
.identifier("string")
.orgId("string")
.projectId("string")
.linkedSsoDisplayName("string")
.linkedSsoId("string")
.linkedSsoType("string")
.name("string")
.externallyManaged(false)
.description("string")
.notificationConfigs(UsergroupNotificationConfigArgs.builder()
.groupEmail("string")
.microsoftTeamsWebhookUrl("string")
.pagerDutyKey("string")
.sendEmailToAllUsers(false)
.slackWebhookUrl("string")
.type("string")
.build())
.ssoGroupId("string")
.ssoGroupName("string")
.ssoLinked(false)
.tags("string")
.userEmails("string")
.users("string")
.build());
usergroup_resource = harness.platform.Usergroup("usergroupResource",
identifier="string",
org_id="string",
project_id="string",
linked_sso_display_name="string",
linked_sso_id="string",
linked_sso_type="string",
name="string",
externally_managed=False,
description="string",
notification_configs=[harness.platform.UsergroupNotificationConfigArgs(
group_email="string",
microsoft_teams_webhook_url="string",
pager_duty_key="string",
send_email_to_all_users=False,
slack_webhook_url="string",
type="string",
)],
sso_group_id="string",
sso_group_name="string",
sso_linked=False,
tags=["string"],
user_emails=["string"],
users=["string"])
const usergroupResource = new harness.platform.Usergroup("usergroupResource", {
identifier: "string",
orgId: "string",
projectId: "string",
linkedSsoDisplayName: "string",
linkedSsoId: "string",
linkedSsoType: "string",
name: "string",
externallyManaged: false,
description: "string",
notificationConfigs: [{
groupEmail: "string",
microsoftTeamsWebhookUrl: "string",
pagerDutyKey: "string",
sendEmailToAllUsers: false,
slackWebhookUrl: "string",
type: "string",
}],
ssoGroupId: "string",
ssoGroupName: "string",
ssoLinked: false,
tags: ["string"],
userEmails: ["string"],
users: ["string"],
});
type: harness:platform:Usergroup
properties:
description: string
externallyManaged: false
identifier: string
linkedSsoDisplayName: string
linkedSsoId: string
linkedSsoType: string
name: string
notificationConfigs:
- groupEmail: string
microsoftTeamsWebhookUrl: string
pagerDutyKey: string
sendEmailToAllUsers: false
slackWebhookUrl: string
type: string
orgId: string
projectId: string
ssoGroupId: string
ssoGroupName: string
ssoLinked: false
tags:
- string
userEmails:
- string
users:
- string
Usergroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Usergroup resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Externally
Managed bool - Whether the user group is externally managed.
- Linked
Sso stringDisplay Name - Name of the linked SSO.
- Linked
Sso stringId - The SSO account ID that the user group is linked to.
- Linked
Sso stringType - Type of linked SSO.
- Name string
- Name of the resource.
- Notification
Configs List<UsergroupNotification Config> - List of notification settings.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Sso
Group stringId - Identifier of the userGroup in SSO.
- Sso
Group stringName - Name of the SSO userGroup.
- Sso
Linked bool - Whether sso is linked or not.
- List<string>
- Tags to associate with the resource.
- User
Emails List<string> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- Users List<string>
- List of users in the UserGroup. Either provide list of users or list of user emails.
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Externally
Managed bool - Whether the user group is externally managed.
- Linked
Sso stringDisplay Name - Name of the linked SSO.
- Linked
Sso stringId - The SSO account ID that the user group is linked to.
- Linked
Sso stringType - Type of linked SSO.
- Name string
- Name of the resource.
- Notification
Configs []UsergroupNotification Config Args - List of notification settings.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Sso
Group stringId - Identifier of the userGroup in SSO.
- Sso
Group stringName - Name of the SSO userGroup.
- Sso
Linked bool - Whether sso is linked or not.
- []string
- Tags to associate with the resource.
- User
Emails []string - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- Users []string
- List of users in the UserGroup. Either provide list of users or list of user emails.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- externally
Managed Boolean - Whether the user group is externally managed.
- linked
Sso StringDisplay Name - Name of the linked SSO.
- linked
Sso StringId - The SSO account ID that the user group is linked to.
- linked
Sso StringType - Type of linked SSO.
- name String
- Name of the resource.
- notification
Configs List<UsergroupNotification Config> - List of notification settings.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- sso
Group StringId - Identifier of the userGroup in SSO.
- sso
Group StringName - Name of the SSO userGroup.
- sso
Linked Boolean - Whether sso is linked or not.
- List<String>
- Tags to associate with the resource.
- user
Emails List<String> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users List<String>
- List of users in the UserGroup. Either provide list of users or list of user emails.
- identifier string
- Unique identifier of the resource.
- description string
- Description of the resource.
- externally
Managed boolean - Whether the user group is externally managed.
- linked
Sso stringDisplay Name - Name of the linked SSO.
- linked
Sso stringId - The SSO account ID that the user group is linked to.
- linked
Sso stringType - Type of linked SSO.
- name string
- Name of the resource.
- notification
Configs UsergroupNotification Config[] - List of notification settings.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- sso
Group stringId - Identifier of the userGroup in SSO.
- sso
Group stringName - Name of the SSO userGroup.
- sso
Linked boolean - Whether sso is linked or not.
- string[]
- Tags to associate with the resource.
- user
Emails string[] - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users string[]
- List of users in the UserGroup. Either provide list of users or list of user emails.
- identifier str
- Unique identifier of the resource.
- description str
- Description of the resource.
- externally_
managed bool - Whether the user group is externally managed.
- linked_
sso_ strdisplay_ name - Name of the linked SSO.
- linked_
sso_ strid - The SSO account ID that the user group is linked to.
- linked_
sso_ strtype - Type of linked SSO.
- name str
- Name of the resource.
- notification_
configs Sequence[UsergroupNotification Config Args] - List of notification settings.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- sso_
group_ strid - Identifier of the userGroup in SSO.
- sso_
group_ strname - Name of the SSO userGroup.
- sso_
linked bool - Whether sso is linked or not.
- Sequence[str]
- Tags to associate with the resource.
- user_
emails Sequence[str] - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users Sequence[str]
- List of users in the UserGroup. Either provide list of users or list of user emails.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- externally
Managed Boolean - Whether the user group is externally managed.
- linked
Sso StringDisplay Name - Name of the linked SSO.
- linked
Sso StringId - The SSO account ID that the user group is linked to.
- linked
Sso StringType - Type of linked SSO.
- name String
- Name of the resource.
- notification
Configs List<Property Map> - List of notification settings.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- sso
Group StringId - Identifier of the userGroup in SSO.
- sso
Group StringName - Name of the SSO userGroup.
- sso
Linked Boolean - Whether sso is linked or not.
- List<String>
- Tags to associate with the resource.
- user
Emails List<String> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users List<String>
- List of users in the UserGroup. Either provide list of users or list of user emails.
Outputs
All input properties are implicitly available as output properties. Additionally, the Usergroup 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Usergroup Resource
Get an existing Usergroup 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?: UsergroupState, opts?: CustomResourceOptions): Usergroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
externally_managed: Optional[bool] = None,
identifier: Optional[str] = None,
linked_sso_display_name: Optional[str] = None,
linked_sso_id: Optional[str] = None,
linked_sso_type: Optional[str] = None,
name: Optional[str] = None,
notification_configs: Optional[Sequence[UsergroupNotificationConfigArgs]] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
sso_group_id: Optional[str] = None,
sso_group_name: Optional[str] = None,
sso_linked: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
user_emails: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None) -> Usergroup
func GetUsergroup(ctx *Context, name string, id IDInput, state *UsergroupState, opts ...ResourceOption) (*Usergroup, error)
public static Usergroup Get(string name, Input<string> id, UsergroupState? state, CustomResourceOptions? opts = null)
public static Usergroup get(String name, Output<String> id, UsergroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description of the resource.
- Externally
Managed bool - Whether the user group is externally managed.
- Identifier string
- Unique identifier of the resource.
- Linked
Sso stringDisplay Name - Name of the linked SSO.
- Linked
Sso stringId - The SSO account ID that the user group is linked to.
- Linked
Sso stringType - Type of linked SSO.
- Name string
- Name of the resource.
- Notification
Configs List<UsergroupNotification Config> - List of notification settings.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Sso
Group stringId - Identifier of the userGroup in SSO.
- Sso
Group stringName - Name of the SSO userGroup.
- Sso
Linked bool - Whether sso is linked or not.
- List<string>
- Tags to associate with the resource.
- User
Emails List<string> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- Users List<string>
- List of users in the UserGroup. Either provide list of users or list of user emails.
- Description string
- Description of the resource.
- Externally
Managed bool - Whether the user group is externally managed.
- Identifier string
- Unique identifier of the resource.
- Linked
Sso stringDisplay Name - Name of the linked SSO.
- Linked
Sso stringId - The SSO account ID that the user group is linked to.
- Linked
Sso stringType - Type of linked SSO.
- Name string
- Name of the resource.
- Notification
Configs []UsergroupNotification Config Args - List of notification settings.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Sso
Group stringId - Identifier of the userGroup in SSO.
- Sso
Group stringName - Name of the SSO userGroup.
- Sso
Linked bool - Whether sso is linked or not.
- []string
- Tags to associate with the resource.
- User
Emails []string - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- Users []string
- List of users in the UserGroup. Either provide list of users or list of user emails.
- description String
- Description of the resource.
- externally
Managed Boolean - Whether the user group is externally managed.
- identifier String
- Unique identifier of the resource.
- linked
Sso StringDisplay Name - Name of the linked SSO.
- linked
Sso StringId - The SSO account ID that the user group is linked to.
- linked
Sso StringType - Type of linked SSO.
- name String
- Name of the resource.
- notification
Configs List<UsergroupNotification Config> - List of notification settings.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- sso
Group StringId - Identifier of the userGroup in SSO.
- sso
Group StringName - Name of the SSO userGroup.
- sso
Linked Boolean - Whether sso is linked or not.
- List<String>
- Tags to associate with the resource.
- user
Emails List<String> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users List<String>
- List of users in the UserGroup. Either provide list of users or list of user emails.
- description string
- Description of the resource.
- externally
Managed boolean - Whether the user group is externally managed.
- identifier string
- Unique identifier of the resource.
- linked
Sso stringDisplay Name - Name of the linked SSO.
- linked
Sso stringId - The SSO account ID that the user group is linked to.
- linked
Sso stringType - Type of linked SSO.
- name string
- Name of the resource.
- notification
Configs UsergroupNotification Config[] - List of notification settings.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- sso
Group stringId - Identifier of the userGroup in SSO.
- sso
Group stringName - Name of the SSO userGroup.
- sso
Linked boolean - Whether sso is linked or not.
- string[]
- Tags to associate with the resource.
- user
Emails string[] - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users string[]
- List of users in the UserGroup. Either provide list of users or list of user emails.
- description str
- Description of the resource.
- externally_
managed bool - Whether the user group is externally managed.
- identifier str
- Unique identifier of the resource.
- linked_
sso_ strdisplay_ name - Name of the linked SSO.
- linked_
sso_ strid - The SSO account ID that the user group is linked to.
- linked_
sso_ strtype - Type of linked SSO.
- name str
- Name of the resource.
- notification_
configs Sequence[UsergroupNotification Config Args] - List of notification settings.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- sso_
group_ strid - Identifier of the userGroup in SSO.
- sso_
group_ strname - Name of the SSO userGroup.
- sso_
linked bool - Whether sso is linked or not.
- Sequence[str]
- Tags to associate with the resource.
- user_
emails Sequence[str] - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users Sequence[str]
- List of users in the UserGroup. Either provide list of users or list of user emails.
- description String
- Description of the resource.
- externally
Managed Boolean - Whether the user group is externally managed.
- identifier String
- Unique identifier of the resource.
- linked
Sso StringDisplay Name - Name of the linked SSO.
- linked
Sso StringId - The SSO account ID that the user group is linked to.
- linked
Sso StringType - Type of linked SSO.
- name String
- Name of the resource.
- notification
Configs List<Property Map> - List of notification settings.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- sso
Group StringId - Identifier of the userGroup in SSO.
- sso
Group StringName - Name of the SSO userGroup.
- sso
Linked Boolean - Whether sso is linked or not.
- List<String>
- Tags to associate with the resource.
- user
Emails List<String> - List of user emails in the UserGroup. Either provide list of users or list of user emails.
- users List<String>
- List of users in the UserGroup. Either provide list of users or list of user emails.
Supporting Types
UsergroupNotificationConfig, UsergroupNotificationConfigArgs
- Group
Email string - Group email.
- Microsoft
Teams stringWebhook Url - Url of Microsoft teams webhook.
- Pager
Duty stringKey - Pager duty key.
- Send
Email boolTo All Users - Send email to all the group members.
- Slack
Webhook stringUrl - Url of slack webhook.
- Type string
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
- Group
Email string - Group email.
- Microsoft
Teams stringWebhook Url - Url of Microsoft teams webhook.
- Pager
Duty stringKey - Pager duty key.
- Send
Email boolTo All Users - Send email to all the group members.
- Slack
Webhook stringUrl - Url of slack webhook.
- Type string
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
- group
Email String - Group email.
- microsoft
Teams StringWebhook Url - Url of Microsoft teams webhook.
- pager
Duty StringKey - Pager duty key.
- send
Email BooleanTo All Users - Send email to all the group members.
- slack
Webhook StringUrl - Url of slack webhook.
- type String
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
- group
Email string - Group email.
- microsoft
Teams stringWebhook Url - Url of Microsoft teams webhook.
- pager
Duty stringKey - Pager duty key.
- send
Email booleanTo All Users - Send email to all the group members.
- slack
Webhook stringUrl - Url of slack webhook.
- type string
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
- group_
email str - Group email.
- microsoft_
teams_ strwebhook_ url - Url of Microsoft teams webhook.
- pager_
duty_ strkey - Pager duty key.
- send_
email_ boolto_ all_ users - Send email to all the group members.
- slack_
webhook_ strurl - Url of slack webhook.
- type str
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
- group
Email String - Group email.
- microsoft
Teams StringWebhook Url - Url of Microsoft teams webhook.
- pager
Duty StringKey - Pager duty key.
- send
Email BooleanTo All Users - Send email to all the group members.
- slack
Webhook StringUrl - Url of slack webhook.
- type String
- Can be one of EMAIL, SLACK, PAGERDUTY, MSTEAMS.
Import
Import account level user group
$ pulumi import harness:platform/usergroup:Usergroup example <usergroup_id>
Import org level user group
$ pulumi import harness:platform/usergroup:Usergroup example <ord_id>/<usergroup_id>
Import project level user group
$ pulumi import harness:platform/usergroup:Usergroup example <org_id>/<project_id>/<usergroup_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.