published on Friday, Sep 11, 2026 by Pulumi
published on Friday, Sep 11, 2026 by Pulumi
The Client Role Assignments APIs allow you to assign roles and designate third-party admin status to public client apps.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.Oauth2V1ClientsRoleSuperAdmin("example", {
clientId: "<client_id>",
type: "SUPER_ADMIN",
});
import pulumi
import pulumi_okta as okta
example = okta.Oauth2V1ClientsRoleSuperAdmin("example",
client_id="<client_id>",
type="SUPER_ADMIN")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v7/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.NewOauth2V1ClientsRoleSuperAdmin(ctx, "example", &okta.Oauth2V1ClientsRoleSuperAdminArgs{
ClientId: pulumi.String("<client_id>"),
Type: pulumi.String("SUPER_ADMIN"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = new Okta.Oauth2V1ClientsRoleSuperAdmin("example", new()
{
ClientId = "<client_id>",
Type = "SUPER_ADMIN",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.Oauth2V1ClientsRoleSuperAdmin;
import com.pulumi.okta.Oauth2V1ClientsRoleSuperAdminArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new Oauth2V1ClientsRoleSuperAdmin("example", Oauth2V1ClientsRoleSuperAdminArgs.builder()
.clientId("<client_id>")
.type("SUPER_ADMIN")
.build());
}
}
resources:
example:
type: okta:Oauth2V1ClientsRoleSuperAdmin
properties:
clientId: <client_id>
type: SUPER_ADMIN
pulumi {
required_providers {
okta = {
source = "pulumi/okta"
}
}
}
resource "okta_oauth2v1clientsrolesuperadmin" "example" {
client_id = "<client_id>"
type = "SUPER_ADMIN"
}
Create Oauth2V1ClientsRoleSuperAdmin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Oauth2V1ClientsRoleSuperAdmin(name: string, args: Oauth2V1ClientsRoleSuperAdminArgs, opts?: CustomResourceOptions);@overload
def Oauth2V1ClientsRoleSuperAdmin(resource_name: str,
args: Oauth2V1ClientsRoleSuperAdminArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Oauth2V1ClientsRoleSuperAdmin(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
type: Optional[str] = None,
assignment_type: Optional[str] = None,
status: Optional[str] = None)func NewOauth2V1ClientsRoleSuperAdmin(ctx *Context, name string, args Oauth2V1ClientsRoleSuperAdminArgs, opts ...ResourceOption) (*Oauth2V1ClientsRoleSuperAdmin, error)public Oauth2V1ClientsRoleSuperAdmin(string name, Oauth2V1ClientsRoleSuperAdminArgs args, CustomResourceOptions? opts = null)
public Oauth2V1ClientsRoleSuperAdmin(String name, Oauth2V1ClientsRoleSuperAdminArgs args)
public Oauth2V1ClientsRoleSuperAdmin(String name, Oauth2V1ClientsRoleSuperAdminArgs args, CustomResourceOptions options)
type: okta:Oauth2V1ClientsRoleSuperAdmin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "okta_oauth2_v1_clients_role_super_admin" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args Oauth2V1ClientsRoleSuperAdminArgs
- 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 Oauth2V1ClientsRoleSuperAdminArgs
- 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 Oauth2V1ClientsRoleSuperAdminArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Oauth2V1ClientsRoleSuperAdminArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Oauth2V1ClientsRoleSuperAdminArgs
- 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 oauth2V1ClientsRoleSuperAdminResource = new Okta.Oauth2V1ClientsRoleSuperAdmin("oauth2V1ClientsRoleSuperAdminResource", new()
{
ClientId = "string",
Type = "string",
AssignmentType = "string",
Status = "string",
});
example, err := okta.NewOauth2V1ClientsRoleSuperAdmin(ctx, "oauth2V1ClientsRoleSuperAdminResource", &okta.Oauth2V1ClientsRoleSuperAdminArgs{
ClientId: pulumi.String("string"),
Type: pulumi.String("string"),
AssignmentType: pulumi.String("string"),
Status: pulumi.String("string"),
})
resource "okta_oauth2_v1_clients_role_super_admin" "oauth2V1ClientsRoleSuperAdminResource" {
lifecycle {
create_before_destroy = true
}
client_id = "string"
type = "string"
assignment_type = "string"
status = "string"
}
var oauth2V1ClientsRoleSuperAdminResource = new Oauth2V1ClientsRoleSuperAdmin("oauth2V1ClientsRoleSuperAdminResource", Oauth2V1ClientsRoleSuperAdminArgs.builder()
.clientId("string")
.type("string")
.assignmentType("string")
.status("string")
.build());
oauth2_v1_clients_role_super_admin_resource = okta.Oauth2V1ClientsRoleSuperAdmin("oauth2V1ClientsRoleSuperAdminResource",
client_id="string",
type="string",
assignment_type="string",
status="string")
const oauth2V1ClientsRoleSuperAdminResource = new okta.Oauth2V1ClientsRoleSuperAdmin("oauth2V1ClientsRoleSuperAdminResource", {
clientId: "string",
type: "string",
assignmentType: "string",
status: "string",
});
type: okta:Oauth2V1ClientsRoleSuperAdmin
properties:
assignmentType: string
clientId: string
status: string
type: string
Oauth2V1ClientsRoleSuperAdmin 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 Oauth2V1ClientsRoleSuperAdmin resource accepts the following input properties:
- Client
Id string clientIdof the app- Type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- Assignment
Type string - Role assignment type
- Status string
- Status of the role assignment
- Client
Id string clientIdof the app- Type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- Assignment
Type string - Role assignment type
- Status string
- Status of the role assignment
- client_
id string clientIdof the app- type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment_
type string - Role assignment type
- status string
- Status of the role assignment
- client
Id String clientIdof the app- type String
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type String - Role assignment type
- status String
- Status of the role assignment
- client
Id string clientIdof the app- type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type string - Role assignment type
- status string
- Status of the role assignment
- client_
id str clientIdof the app- type str
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment_
type str - Role assignment type
- status str
- Status of the role assignment
- client
Id String clientIdof the app- type String
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type String - Role assignment type
- status String
- Status of the role assignment
Outputs
All input properties are implicitly available as output properties. Additionally, the Oauth2V1ClientsRoleSuperAdmin resource produces the following output properties:
- Created string
- Timestamp when the object was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- Label for the role assignment
- Last
Updated string - Timestamp when the object was last updated
- Created string
- Timestamp when the object was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- Label for the role assignment
- Last
Updated string - Timestamp when the object was last updated
- created string
- Timestamp when the object was created
- id string
- The provider-assigned unique ID for this managed resource.
- label string
- Label for the role assignment
- last_
updated string - Timestamp when the object was last updated
- created String
- Timestamp when the object was created
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- Label for the role assignment
- last
Updated String - Timestamp when the object was last updated
- created string
- Timestamp when the object was created
- id string
- The provider-assigned unique ID for this managed resource.
- label string
- Label for the role assignment
- last
Updated string - Timestamp when the object was last updated
- created str
- Timestamp when the object was created
- id str
- The provider-assigned unique ID for this managed resource.
- label str
- Label for the role assignment
- last_
updated str - Timestamp when the object was last updated
- created String
- Timestamp when the object was created
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- Label for the role assignment
- last
Updated String - Timestamp when the object was last updated
Look up Existing Oauth2V1ClientsRoleSuperAdmin Resource
Get an existing Oauth2V1ClientsRoleSuperAdmin 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?: Oauth2V1ClientsRoleSuperAdminState, opts?: CustomResourceOptions): Oauth2V1ClientsRoleSuperAdmin@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assignment_type: Optional[str] = None,
client_id: Optional[str] = None,
created: Optional[str] = None,
label: Optional[str] = None,
last_updated: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> Oauth2V1ClientsRoleSuperAdminfunc GetOauth2V1ClientsRoleSuperAdmin(ctx *Context, name string, id IDInput, state *Oauth2V1ClientsRoleSuperAdminState, opts ...ResourceOption) (*Oauth2V1ClientsRoleSuperAdmin, error)public static Oauth2V1ClientsRoleSuperAdmin Get(string name, Input<string> id, Oauth2V1ClientsRoleSuperAdminState? state, CustomResourceOptions? opts = null)public static Oauth2V1ClientsRoleSuperAdmin get(String name, Output<String> id, Oauth2V1ClientsRoleSuperAdminState state, CustomResourceOptions options)resources: _: type: okta:Oauth2V1ClientsRoleSuperAdmin get: id: ${id}import {
to = okta_oauth2_v1_clients_role_super_admin.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.
- Assignment
Type string - Role assignment type
- Client
Id string clientIdof the app- Created string
- Timestamp when the object was created
- Label string
- Label for the role assignment
- Last
Updated string - Timestamp when the object was last updated
- Status string
- Status of the role assignment
- Type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- Assignment
Type string - Role assignment type
- Client
Id string clientIdof the app- Created string
- Timestamp when the object was created
- Label string
- Label for the role assignment
- Last
Updated string - Timestamp when the object was last updated
- Status string
- Status of the role assignment
- Type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment_
type string - Role assignment type
- client_
id string clientIdof the app- created string
- Timestamp when the object was created
- label string
- Label for the role assignment
- last_
updated string - Timestamp when the object was last updated
- status string
- Status of the role assignment
- type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type String - Role assignment type
- client
Id String clientIdof the app- created String
- Timestamp when the object was created
- label String
- Label for the role assignment
- last
Updated String - Timestamp when the object was last updated
- status String
- Status of the role assignment
- type String
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type string - Role assignment type
- client
Id string clientIdof the app- created string
- Timestamp when the object was created
- label string
- Label for the role assignment
- last
Updated string - Timestamp when the object was last updated
- status string
- Status of the role assignment
- type string
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment_
type str - Role assignment type
- client_
id str clientIdof the app- created str
- Timestamp when the object was created
- label str
- Label for the role assignment
- last_
updated str - Timestamp when the object was last updated
- status str
- Status of the role assignment
- type str
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
- assignment
Type String - Role assignment type
- client
Id String clientIdof the app- created String
- Timestamp when the object was created
- label String
- Label for the role assignment
- last
Updated String - Timestamp when the object was last updated
- status String
- Status of the role assignment
- type String
- Discriminator field identifying the variant type. Must be set to "SUPER_ADMIN".
Import
$ pulumi import okta:index/oauth2V1ClientsRoleSuperAdmin:Oauth2V1ClientsRoleSuperAdmin example <client_id>/<id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
published on Friday, Sep 11, 2026 by Pulumi