UserSchema
Creates an Application User Schema property.
This resource allows you to create and configure a custom user schema property and associate it with an application.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.App.UserSchema("example", new Okta.App.UserSchemaArgs
{
AppId = "<app id>",
Description = "My custom property name",
Index = "customPropertyName",
Master = "OKTA",
Scope = "SELF",
Title = "customPropertyName",
Type = "string",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.app.UserSchema("example",
app_id="<app id>",
description="My custom property name",
index="customPropertyName",
master="OKTA",
scope="SELF",
title="customPropertyName",
type="string")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.app.UserSchema("example", {
appId: "<app id>",
description: "My custom property name",
index: "customPropertyName",
master: "OKTA",
scope: "SELF",
title: "customPropertyName",
type: "string",
});Create a UserSchema Resource
new UserSchema(name: string, args: UserSchemaArgs, opts?: CustomResourceOptions);def UserSchema(resource_name, opts=None, app_id=None, array_enums=None, array_one_ofs=None, array_type=None, description=None, enums=None, external_name=None, index=None, master=None, max_length=None, min_length=None, one_ofs=None, permissions=None, required=None, scope=None, title=None, type=None, __props__=None);func NewUserSchema(ctx *Context, name string, args UserSchemaArgs, opts ...ResourceOption) (*UserSchema, error)public UserSchema(string name, UserSchemaArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UserSchemaArgs
- 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 UserSchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserSchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
UserSchema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UserSchema resource accepts the following input properties:
- App
Id string The Application’s ID the user custom schema property should be assigned to.
- Index string
The property name.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- Array
Enums List<string> Array of values that an array property’s items can be set to.
- Array
One List<UserOfs Schema Array One Of Args> Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums List<string>
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs List<UserSchema One Of Args> Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- App
Id string The Application’s ID the user custom schema property should be assigned to.
- Index string
The property name.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- Array
Enums []string Array of values that an array property’s items can be set to.
- Array
One []UserOfs Schema Array One Of Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums []string
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs []UserSchema One Of Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- app
Id string The Application’s ID the user custom schema property should be assigned to.
- index string
The property name.
- title string
display name for the enum value.
- type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- array
Enums string[] Array of values that an array property’s items can be set to.
- array
One UserOfs Schema Array One Of[] Display name and value an enum array can be set to.
- array
Type string The type of the array elements if
typeis set to"array".- description string
The description of the user schema property.
- enums string[]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external
Name string External name of the user schema property.
- master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max
Length number The maximum length of the user property value. Only applies to type
"string".- min
Length number The minimum length of the user property value. Only applies to type
"string".- one
Ofs UserSchema One Of[] Array of maps containing a mapping for display name to enum value.
- permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required boolean
Whether the property is required for this application’s users.
- scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- app_
id str The Application’s ID the user custom schema property should be assigned to.
- index str
The property name.
- title str
display name for the enum value.
- type str
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- array_
enums List[str] Array of values that an array property’s items can be set to.
- array_
one_ List[Userofs Schema Array One Of] Display name and value an enum array can be set to.
- array_
type str The type of the array elements if
typeis set to"array".- description str
The description of the user schema property.
- enums List[str]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external_
name str External name of the user schema property.
- master str
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max_
length float The maximum length of the user property value. Only applies to type
"string".- min_
length float The minimum length of the user property value. Only applies to type
"string".- one_
ofs List[UserSchema One Of] Array of maps containing a mapping for display name to enum value.
- permissions str
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required bool
Whether the property is required for this application’s users.
- scope str
determines whether an app user attribute can be set at the Individual or Group Level.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserSchema resource produces the following output properties:
Look up an Existing UserSchema Resource
Get an existing UserSchema 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?: UserSchemaState, opts?: CustomResourceOptions): UserSchemastatic get(resource_name, id, opts=None, app_id=None, array_enums=None, array_one_ofs=None, array_type=None, description=None, enums=None, external_name=None, index=None, master=None, max_length=None, min_length=None, one_ofs=None, permissions=None, required=None, scope=None, title=None, type=None, __props__=None);func GetUserSchema(ctx *Context, name string, id IDInput, state *UserSchemaState, opts ...ResourceOption) (*UserSchema, error)public static UserSchema Get(string name, Input<string> id, UserSchemaState? 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:
- App
Id string The Application’s ID the user custom schema property should be assigned to.
- Array
Enums List<string> Array of values that an array property’s items can be set to.
- Array
One List<UserOfs Schema Array One Of Args> Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums List<string>
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Index string
The property name.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs List<UserSchema One Of Args> Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- App
Id string The Application’s ID the user custom schema property should be assigned to.
- Array
Enums []string Array of values that an array property’s items can be set to.
- Array
One []UserOfs Schema Array One Of Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums []string
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Index string
The property name.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs []UserSchema One Of Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- app
Id string The Application’s ID the user custom schema property should be assigned to.
- array
Enums string[] Array of values that an array property’s items can be set to.
- array
One UserOfs Schema Array One Of[] Display name and value an enum array can be set to.
- array
Type string The type of the array elements if
typeis set to"array".- description string
The description of the user schema property.
- enums string[]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external
Name string External name of the user schema property.
- index string
The property name.
- master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max
Length number The maximum length of the user property value. Only applies to type
"string".- min
Length number The minimum length of the user property value. Only applies to type
"string".- one
Ofs UserSchema One Of[] Array of maps containing a mapping for display name to enum value.
- permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required boolean
Whether the property is required for this application’s users.
- scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- title string
display name for the enum value.
- type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- app_
id str The Application’s ID the user custom schema property should be assigned to.
- array_
enums List[str] Array of values that an array property’s items can be set to.
- array_
one_ List[Userofs Schema Array One Of] Display name and value an enum array can be set to.
- array_
type str The type of the array elements if
typeis set to"array".- description str
The description of the user schema property.
- enums List[str]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external_
name str External name of the user schema property.
- index str
The property name.
- master str
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max_
length float The maximum length of the user property value. Only applies to type
"string".- min_
length float The minimum length of the user property value. Only applies to type
"string".- one_
ofs List[UserSchema One Of] Array of maps containing a mapping for display name to enum value.
- permissions str
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required bool
Whether the property is required for this application’s users.
- scope str
determines whether an app user attribute can be set at the Individual or Group Level.
- title str
display name for the enum value.
- type str
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
Supporting Types
UserSchemaArrayOneOf
UserSchemaOneOf
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.