Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

Okta

The Okta provider for Pulumi can be used to provision any of the resources available in Okta.

See the full API documentation for complete details of the available Okta provider APIs.

Setup

The Okta provider supports several options for interacting with Okta. See the Okta setup page for details.

Example

const okta = require("@pulumi/okta")

const user = new okta.user.User("example-user", {
    email: "test-user@mydomain.com",
    login: "test-user@mydomain.com",
    firstName: "random",
    lastName: "user",
})
import * as okta from "@pulumi/okta";

const user = new okta.user.User("example-user", {
    email: "test-user@mydomain.com",
    login: "test-user@mydomain.com",
    firstName: "random",
    lastName: "user",
});
import pulumi_okta as okta

user = okta.user.User("example-user",
email="test-user@mydomain.com",
login="test-user@mydomain.com",
first_name="random",
last_name="user",
)
import (
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
    user "github.com/pulumi/pulumi-okta/sdk/v2/go/okta/user"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        user, err := user.User(ctx, "example-user", &user.UserArgs{
            FirstName: pulumi.String("random"),
            LastName:  pulumi.String("user"),
            Email:     pulumi.String("test-user@mydomain.com"),
            Login:     pulumi.String("test-user@mydomain.com"),
        })
        if err != nil {
            return err
        }

        return nil
    })
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Okta.User;

class Program
{
    static Task Main() =>
        Pulumi.Deployment.RunAsync(() =>
        {
            var user = new User("example-user", new UserArgs
            {
                FirstName = "random",
                LastName = "user",
                Login = "test-user@mydomain.com",
                Email = "test-user@mydomain.com",
            });
        });
}

Libraries

The following packages are available in packager managers:

The Okta provider is open source and available in the pulumi/pulumi-okta repo.