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.Oauth2V1ClientsRoleAccessRequestsAdmin("example", {
clientId: "<client_id>",
type: "ACCESS_REQUESTS_ADMIN",
});
import pulumi
import pulumi_okta as okta
example = okta.Oauth2V1ClientsRoleAccessRequestsAdmin("example",
client_id="<client_id>",
type="ACCESS_REQUESTS_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.NewOauth2V1ClientsRoleAccessRequestsAdmin(ctx, "example", &okta.Oauth2V1ClientsRoleAccessRequestsAdminArgs{
ClientId: pulumi.String("<client_id>"),
Type: pulumi.String("ACCESS_REQUESTS_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.Oauth2V1ClientsRoleAccessRequestsAdmin("example", new()
{
ClientId = "<client_id>",
Type = "ACCESS_REQUESTS_ADMIN",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.Oauth2V1ClientsRoleAccessRequestsAdmin;
import com.pulumi.okta.Oauth2V1ClientsRoleAccessRequestsAdminArgs;
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 Oauth2V1ClientsRoleAccessRequestsAdmin("example", Oauth2V1ClientsRoleAccessRequestsAdminArgs.builder()
.clientId("<client_id>")
.type("ACCESS_REQUESTS_ADMIN")
.build());
}
}
resources:
example:
type: okta:Oauth2V1ClientsRoleAccessRequestsAdmin
properties:
clientId: <client_id>
type: ACCESS_REQUESTS_ADMIN
pulumi {
required_providers {
okta = {
source = "pulumi/okta"
}
}
}
resource "okta_oauth2v1clientsroleaccessrequestsadmin" "example" {
client_id = "<client_id>"
type = "ACCESS_REQUESTS_ADMIN"
}
Create Oauth2V1ClientsRoleAccessRequestsAdmin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Oauth2V1ClientsRoleAccessRequestsAdmin(name: string, args: Oauth2V1ClientsRoleAccessRequestsAdminArgs, opts?: CustomResourceOptions);@overload
def Oauth2V1ClientsRoleAccessRequestsAdmin(resource_name: str,
args: Oauth2V1ClientsRoleAccessRequestsAdminArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Oauth2V1ClientsRoleAccessRequestsAdmin(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 NewOauth2V1ClientsRoleAccessRequestsAdmin(ctx *Context, name string, args Oauth2V1ClientsRoleAccessRequestsAdminArgs, opts ...ResourceOption) (*Oauth2V1ClientsRoleAccessRequestsAdmin, error)public Oauth2V1ClientsRoleAccessRequestsAdmin(string name, Oauth2V1ClientsRoleAccessRequestsAdminArgs args, CustomResourceOptions? opts = null)
public Oauth2V1ClientsRoleAccessRequestsAdmin(String name, Oauth2V1ClientsRoleAccessRequestsAdminArgs args)
public Oauth2V1ClientsRoleAccessRequestsAdmin(String name, Oauth2V1ClientsRoleAccessRequestsAdminArgs args, CustomResourceOptions options)
type: okta:Oauth2V1ClientsRoleAccessRequestsAdmin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "okta_oauth2_v1_clients_role_access_requests_admin" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args Oauth2V1ClientsRoleAccessRequestsAdminArgs
- 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 Oauth2V1ClientsRoleAccessRequestsAdminArgs
- 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 Oauth2V1ClientsRoleAccessRequestsAdminArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Oauth2V1ClientsRoleAccessRequestsAdminArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Oauth2V1ClientsRoleAccessRequestsAdminArgs
- 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 oauth2V1ClientsRoleAccessRequestsAdminResource = new Okta.Oauth2V1ClientsRoleAccessRequestsAdmin("oauth2V1ClientsRoleAccessRequestsAdminResource", new()
{
ClientId = "string",
Type = "string",
AssignmentType = "string",
Status = "string",
});
example, err := okta.NewOauth2V1ClientsRoleAccessRequestsAdmin(ctx, "oauth2V1ClientsRoleAccessRequestsAdminResource", &okta.Oauth2V1ClientsRoleAccessRequestsAdminArgs{
ClientId: pulumi.String("string"),
Type: pulumi.String("string"),
AssignmentType: pulumi.String("string"),
Status: pulumi.String("string"),
})
resource "okta_oauth2_v1_clients_role_access_requests_admin" "oauth2V1ClientsRoleAccessRequestsAdminResource" {
lifecycle {
create_before_destroy = true
}
client_id = "string"
type = "string"
assignment_type = "string"
status = "string"
}
var oauth2V1ClientsRoleAccessRequestsAdminResource = new Oauth2V1ClientsRoleAccessRequestsAdmin("oauth2V1ClientsRoleAccessRequestsAdminResource", Oauth2V1ClientsRoleAccessRequestsAdminArgs.builder()
.clientId("string")
.type("string")
.assignmentType("string")
.status("string")
.build());
oauth2_v1_clients_role_access_requests_admin_resource = okta.Oauth2V1ClientsRoleAccessRequestsAdmin("oauth2V1ClientsRoleAccessRequestsAdminResource",
client_id="string",
type="string",
assignment_type="string",
status="string")
const oauth2V1ClientsRoleAccessRequestsAdminResource = new okta.Oauth2V1ClientsRoleAccessRequestsAdmin("oauth2V1ClientsRoleAccessRequestsAdminResource", {
clientId: "string",
type: "string",
assignmentType: "string",
status: "string",
});
type: okta:Oauth2V1ClientsRoleAccessRequestsAdmin
properties:
assignmentType: string
clientId: string
status: string
type: string
Oauth2V1ClientsRoleAccessRequestsAdmin 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 Oauth2V1ClientsRoleAccessRequestsAdmin resource accepts the following input properties:
- Client
Id string clientIdof the app- Type string
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 "ACCESSREQUESTSADMIN".
- 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 Oauth2V1ClientsRoleAccessRequestsAdmin 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
- Resource
Set string - Resource set ID
- Role string
- Role ID
- 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
- Resource
Set string - Resource set ID
- Role string
- Role ID
- 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
- resource_
set string - Resource set ID
- role string
- Role ID
- 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
- resource
Set String - Resource set ID
- role String
- Role ID
- 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
- resource
Set string - Resource set ID
- role string
- Role ID
- 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
- resource_
set str - Resource set ID
- role str
- Role ID
- 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
- resource
Set String - Resource set ID
- role String
- Role ID
Look up Existing Oauth2V1ClientsRoleAccessRequestsAdmin Resource
Get an existing Oauth2V1ClientsRoleAccessRequestsAdmin 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?: Oauth2V1ClientsRoleAccessRequestsAdminState, opts?: CustomResourceOptions): Oauth2V1ClientsRoleAccessRequestsAdmin@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,
resource_set: Optional[str] = None,
role: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> Oauth2V1ClientsRoleAccessRequestsAdminfunc GetOauth2V1ClientsRoleAccessRequestsAdmin(ctx *Context, name string, id IDInput, state *Oauth2V1ClientsRoleAccessRequestsAdminState, opts ...ResourceOption) (*Oauth2V1ClientsRoleAccessRequestsAdmin, error)public static Oauth2V1ClientsRoleAccessRequestsAdmin Get(string name, Input<string> id, Oauth2V1ClientsRoleAccessRequestsAdminState? state, CustomResourceOptions? opts = null)public static Oauth2V1ClientsRoleAccessRequestsAdmin get(String name, Output<String> id, Oauth2V1ClientsRoleAccessRequestsAdminState state, CustomResourceOptions options)resources: _: type: okta:Oauth2V1ClientsRoleAccessRequestsAdmin get: id: ${id}import {
to = okta_oauth2_v1_clients_role_access_requests_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
- Resource
Set string - Resource set ID
- Role string
- Role ID
- Status string
- Status of the role assignment
- Type string
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- Resource
Set string - Resource set ID
- Role string
- Role ID
- Status string
- Status of the role assignment
- Type string
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- resource_
set string - Resource set ID
- role string
- Role ID
- status string
- Status of the role assignment
- type string
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- resource
Set String - Resource set ID
- role String
- Role ID
- status String
- Status of the role assignment
- type String
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- resource
Set string - Resource set ID
- role string
- Role ID
- status string
- Status of the role assignment
- type string
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- resource_
set str - Resource set ID
- role str
- Role ID
- status str
- Status of the role assignment
- type str
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
- 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
- resource
Set String - Resource set ID
- role String
- Role ID
- status String
- Status of the role assignment
- type String
- Discriminator field identifying the variant type. Must be set to "ACCESSREQUESTSADMIN".
Import
$ pulumi import okta:index/oauth2V1ClientsRoleAccessRequestsAdmin:Oauth2V1ClientsRoleAccessRequestsAdmin 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