Okta v4.11.3 published on Monday, Oct 21, 2024 by Pulumi
okta.getUserSecurityQuestions
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const exampleUser = new okta.user.User("example", {
firstName: "John",
lastName: "Smith",
login: "john.smith@example.com",
email: "john.smith@example.com",
});
const example = okta.getUserSecurityQuestionsOutput({
userId: exampleUser.id,
});
import pulumi
import pulumi_okta as okta
example_user = okta.user.User("example",
first_name="John",
last_name="Smith",
login="john.smith@example.com",
email="john.smith@example.com")
example = okta.get_user_security_questions_output(user_id=example_user.id)
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/user"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleUser, err := user.NewUser(ctx, "example", &user.UserArgs{
FirstName: pulumi.String("John"),
LastName: pulumi.String("Smith"),
Login: pulumi.String("john.smith@example.com"),
Email: pulumi.String("john.smith@example.com"),
})
if err != nil {
return err
}
_ = okta.GetUserSecurityQuestionsOutput(ctx, okta.GetUserSecurityQuestionsOutputArgs{
UserId: exampleUser.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var exampleUser = new Okta.User.User("example", new()
{
FirstName = "John",
LastName = "Smith",
Login = "john.smith@example.com",
Email = "john.smith@example.com",
});
var example = Okta.GetUserSecurityQuestions.Invoke(new()
{
UserId = exampleUser.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.user.User;
import com.pulumi.okta.user.UserArgs;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetUserSecurityQuestionsArgs;
import java.util.List;
import java.util.ArrayList;
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 exampleUser = new User("exampleUser", UserArgs.builder()
.firstName("John")
.lastName("Smith")
.login("john.smith@example.com")
.email("john.smith@example.com")
.build());
final var example = OktaFunctions.getUserSecurityQuestions(GetUserSecurityQuestionsArgs.builder()
.userId(exampleUser.id())
.build());
}
}
resources:
exampleUser:
type: okta:user:User
name: example
properties:
firstName: John
lastName: Smith
login: john.smith@example.com
email: john.smith@example.com
variables:
example:
fn::invoke:
Function: okta:getUserSecurityQuestions
Arguments:
userId: ${exampleUser.id}
Using getUserSecurityQuestions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUserSecurityQuestions(args: GetUserSecurityQuestionsArgs, opts?: InvokeOptions): Promise<GetUserSecurityQuestionsResult>
function getUserSecurityQuestionsOutput(args: GetUserSecurityQuestionsOutputArgs, opts?: InvokeOptions): Output<GetUserSecurityQuestionsResult>
def get_user_security_questions(user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserSecurityQuestionsResult
def get_user_security_questions_output(user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserSecurityQuestionsResult]
func GetUserSecurityQuestions(ctx *Context, args *GetUserSecurityQuestionsArgs, opts ...InvokeOption) (*GetUserSecurityQuestionsResult, error)
func GetUserSecurityQuestionsOutput(ctx *Context, args *GetUserSecurityQuestionsOutputArgs, opts ...InvokeOption) GetUserSecurityQuestionsResultOutput
> Note: This function is named GetUserSecurityQuestions
in the Go SDK.
public static class GetUserSecurityQuestions
{
public static Task<GetUserSecurityQuestionsResult> InvokeAsync(GetUserSecurityQuestionsArgs args, InvokeOptions? opts = null)
public static Output<GetUserSecurityQuestionsResult> Invoke(GetUserSecurityQuestionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserSecurityQuestionsResult> getUserSecurityQuestions(GetUserSecurityQuestionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: okta:index/getUserSecurityQuestions:getUserSecurityQuestions
arguments:
# arguments dictionary
The following arguments are supported:
- User
Id string - ID of a Okta User
- User
Id string - ID of a Okta User
- user
Id String - ID of a Okta User
- user
Id string - ID of a Okta User
- user_
id str - ID of a Okta User
- user
Id String - ID of a Okta User
getUserSecurityQuestions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Questions
List<Get
User Security Questions Question> - User
Id string - ID of a Okta User
- Id string
- The provider-assigned unique ID for this managed resource.
- Questions
[]Get
User Security Questions Question - User
Id string - ID of a Okta User
- id String
- The provider-assigned unique ID for this managed resource.
- questions
List<Get
User Security Questions Question> - user
Id String - ID of a Okta User
- id string
- The provider-assigned unique ID for this managed resource.
- questions
Get
User Security Questions Question[] - user
Id string - ID of a Okta User
- id str
- The provider-assigned unique ID for this managed resource.
- questions
Sequence[Get
User Security Questions Question] - user_
id str - ID of a Okta User
- id String
- The provider-assigned unique ID for this managed resource.
- questions List<Property Map>
- user
Id String - ID of a Okta User
Supporting Types
GetUserSecurityQuestionsQuestion
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.