API version:
Show / Hide Table of Contents

Class UserTypesClient

A client that communicates with the Okta management API.

Inheritance
System.Object
OktaClient
UserTypesClient
Implements
IOktaClient
IUserTypesClient
Inherited Members
OktaClient.Configuration
OktaClient.CreateScoped(RequestContext)
OktaClient.UserTypes
OktaClient.Users
OktaClient.UserFactors
OktaClient.Groups
OktaClient.Applications
OktaClient.Sessions
OktaClient.AuthorizationServers
OktaClient.Logs
OktaClient.Policies
OktaClient.EventHooks
OktaClient.InlineHooks
OktaClient.LinkedObjects
OktaClient.TrustedOrigins
OktaClient.Features
OktaClient.Templates
OktaClient.NetworkZones
OktaClient.Domains
OktaClient.IdentityProviders
OktaClient.UserSchemas
OktaClient.GetCollectionClient<T>(HttpRequest)
OktaClient.GetAsync<T>(String, CancellationToken)
OktaClient.GetAsync<T>(HttpRequest, CancellationToken)
OktaClient.GetCollection<T>(String)
OktaClient.GetCollection<T>(HttpRequest)
OktaClient.PostAsync(String, Object, CancellationToken)
OktaClient.PostAsync<TResponse>(String, Object, CancellationToken)
OktaClient.PostAsync(HttpRequest, CancellationToken)
OktaClient.PostAsync<TResponse>(HttpRequest, CancellationToken)
OktaClient.PutAsync(String, Object, CancellationToken)
OktaClient.PutAsync<TResponse>(String, Object, CancellationToken)
OktaClient.PutAsync(HttpRequest, CancellationToken)
OktaClient.PutAsync<TResponse>(HttpRequest, CancellationToken)
OktaClient.DeleteAsync(String, CancellationToken)
OktaClient.DeleteAsync(HttpRequest, CancellationToken)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public sealed class UserTypesClient : OktaClient, IOktaClient, IUserTypesClient

Methods

CreateUserTypeAsync(IUserType, CancellationToken)

Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.

Declaration
public Task<IUserType> CreateUserTypeAsync(IUserType userType, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IUserType userType

The IUserType resource.

System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IUserType>

The IUserType response.

DeleteUserTypeAsync(String, CancellationToken)

Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users

Declaration
public Task DeleteUserTypeAsync(string typeId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String typeId
System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A Task that represents the asynchronous operation.

GetUserTypeAsync(String, CancellationToken)

Fetches a User Type by ID. The special identifier default may be used to fetch the default User Type.

Declaration
public Task<IUserType> GetUserTypeAsync(string typeId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String typeId
System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IUserType>

The IUserType response.

ListUserTypes()

Fetches all User Types in your org

Declaration
public ICollectionClient<IUserType> ListUserTypes()
Returns
Type Description
ICollectionClient<IUserType>

A collection of IUserType that can be enumerated asynchronously.

ReplaceUserTypeAsync(IUserType, String, CancellationToken)

Replace an existing User Type

Declaration
public Task<IUserType> ReplaceUserTypeAsync(IUserType userType, string typeId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IUserType userType

The IUserType resource.

System.String typeId
System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IUserType>

The IUserType response.

UpdateUserTypeAsync(IUserType, String, CancellationToken)

Updates an existing User Type

Declaration
public Task<IUserType> UpdateUserTypeAsync(IUserType userType, string typeId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IUserType userType

The IUserType resource.

System.String typeId
System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IUserType>

The IUserType response.

Implements

IOktaClient
IUserTypesClient
Back to top Copyright © 2021 Okta, Inc.
Generated with DocFx.