GroupAssignment

Assigns a group to an application.

This resource allows you to create an App Group assignment.

When using this resource, make sure to add the following lifefycle argument to the application resource you are assigning to:

import * as pulumi from "@pulumi/pulumi";
import pulumi
using Pulumi;

class MyStack : Stack
{
    public MyStack()
    {
    }

}

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Okta.App.GroupAssignment("example", new Okta.App.GroupAssignmentArgs
        {
            AppId = "<app id>",
            GroupId = "<group id>",
            Profile = @"{
  ""<app_profile_field>"": ""<value>""
}

",
        });
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.app.GroupAssignment("example",
    app_id="<app id>",
    group_id="<group id>",
    profile="""{
  "<app_profile_field>": "<value>"
}

""")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = new okta.app.GroupAssignment("example", {
    appId: "<app id>",
    groupId: "<group id>",
    profile: `{
  "<app_profile_field>": "<value>"
}
`,
});

Create a GroupAssignment Resource

def GroupAssignment(resource_name, opts=None, app_id=None, group_id=None, priority=None, profile=None, __props__=None);
name string
The unique name of the resource.
args GroupAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GroupAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GroupAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

GroupAssignment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The GroupAssignment resource accepts the following input properties:

AppId string

The ID of the application to assign a group to.

GroupId string

The ID of the group to assign the app to.

Priority int
Profile string

JSON document containing application profile

AppId string

The ID of the application to assign a group to.

GroupId string

The ID of the group to assign the app to.

Priority int
Profile string

JSON document containing application profile

appId string

The ID of the application to assign a group to.

groupId string

The ID of the group to assign the app to.

priority number
profile string

JSON document containing application profile

app_id str

The ID of the application to assign a group to.

group_id str

The ID of the group to assign the app to.

priority float
profile str

JSON document containing application profile

Outputs

All input properties are implicitly available as output properties. Additionally, the GroupAssignment 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing GroupAssignment Resource

Get an existing GroupAssignment 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?: GroupAssignmentState, opts?: CustomResourceOptions): GroupAssignment
static get(resource_name, id, opts=None, app_id=None, group_id=None, priority=None, profile=None, __props__=None);
func GetGroupAssignment(ctx *Context, name string, id IDInput, state *GroupAssignmentState, opts ...ResourceOption) (*GroupAssignment, error)
public static GroupAssignment Get(string name, Input<string> id, GroupAssignmentState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AppId string

The ID of the application to assign a group to.

GroupId string

The ID of the group to assign the app to.

Priority int
Profile string

JSON document containing application profile

AppId string

The ID of the application to assign a group to.

GroupId string

The ID of the group to assign the app to.

Priority int
Profile string

JSON document containing application profile

appId string

The ID of the application to assign a group to.

groupId string

The ID of the group to assign the app to.

priority number
profile string

JSON document containing application profile

app_id str

The ID of the application to assign a group to.

group_id str

The ID of the group to assign the app to.

priority float
profile str

JSON document containing application profile

Package Details

Repository
https://github.com/pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.