User

Creates an Application User.

This resource allows you to create and configure an Application User.

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.User("example", new Okta.App.UserArgs
        {
            AppId = "<app_id>",
            UserId = "<user id>",
            Username = "example",
        });
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.app.User("example",
    app_id="<app_id>",
    user_id="<user id>",
    username="example")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = new okta.app.User("example", {
    appId: "<app_id>",
    userId: "<user id>",
    username: "example",
});

Create a User Resource

new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
def User(resource_name, opts=None, app_id=None, password=None, profile=None, user_id=None, username=None, __props__=None);
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args UserArgs
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 UserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

User Resource Properties

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

Inputs

The User resource accepts the following input properties:

AppId string

App to associate user with.

UserId string

User to associate the application with.

Username string

The username to use for the app user.

Password string

The password to use.

Profile string

The JSON profile of the App User.

AppId string

App to associate user with.

UserId string

User to associate the application with.

Username string

The username to use for the app user.

Password string

The password to use.

Profile string

The JSON profile of the App User.

appId string

App to associate user with.

userId string

User to associate the application with.

username string

The username to use for the app user.

password string

The password to use.

profile string

The JSON profile of the App User.

app_id str

App to associate user with.

user_id str

User to associate the application with.

username str

The username to use for the app user.

password str

The password to use.

profile str

The JSON profile of the App User.

Outputs

All input properties are implicitly available as output properties. Additionally, the User 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 User Resource

Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
static get(resource_name, id, opts=None, app_id=None, password=None, profile=None, user_id=None, username=None, __props__=None);
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? 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

App to associate user with.

Password string

The password to use.

Profile string

The JSON profile of the App User.

UserId string

User to associate the application with.

Username string

The username to use for the app user.

AppId string

App to associate user with.

Password string

The password to use.

Profile string

The JSON profile of the App User.

UserId string

User to associate the application with.

Username string

The username to use for the app user.

appId string

App to associate user with.

password string

The password to use.

profile string

The JSON profile of the App User.

userId string

User to associate the application with.

username string

The username to use for the app user.

app_id str

App to associate user with.

password str

The password to use.

profile str

The JSON profile of the App User.

user_id str

User to associate the application with.

username str

The username to use for the app user.

Package Details

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