1. Packages
  2. Okta Provider
  3. API Docs
  4. getEndUserMyRequests
Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi

okta.getEndUserMyRequests

Deploy with Pulumi
okta logo
Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi

    Get an End User Request from Okta Identity Governance. This data source allows you to retrieve information about existing access requests in the Okta Identity Governance system.

    Use this data source to fetch details about a specific request, including its current status, field values, and other metadata.

    Note: This data source is part of Okta Identity Governance functionality and requires appropriate licensing and configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    // Get a request by its catalog entry ID and request ID
    const example = okta.getEndUserMyRequests({
        entryId: "cen123456789abcdefgh",
        id: "reqABCDEFG0123456789",
    });
    export const requestStatus = example.then(example => example.status);
    export const requestFieldValues = example.then(example => example.requesterFieldValues);
    
    import pulumi
    import pulumi_okta as okta
    
    # Get a request by its catalog entry ID and request ID
    example = okta.get_end_user_my_requests(entry_id="cen123456789abcdefgh",
        id="reqABCDEFG0123456789")
    pulumi.export("requestStatus", example.status)
    pulumi.export("requestFieldValues", example.requester_field_values)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get a request by its catalog entry ID and request ID
    		example, err := okta.LookupEndUserMyRequests(ctx, &okta.LookupEndUserMyRequestsArgs{
    			EntryId: "cen123456789abcdefgh",
    			Id:      "reqABCDEFG0123456789",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("requestStatus", example.Status)
    		ctx.Export("requestFieldValues", example.RequesterFieldValues)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        // Get a request by its catalog entry ID and request ID
        var example = Okta.GetEndUserMyRequests.Invoke(new()
        {
            EntryId = "cen123456789abcdefgh",
            Id = "reqABCDEFG0123456789",
        });
    
        return new Dictionary<string, object?>
        {
            ["requestStatus"] = example.Apply(getEndUserMyRequestsResult => getEndUserMyRequestsResult.Status),
            ["requestFieldValues"] = example.Apply(getEndUserMyRequestsResult => getEndUserMyRequestsResult.RequesterFieldValues),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetEndUserMyRequestsArgs;
    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) {
            // Get a request by its catalog entry ID and request ID
            final var example = OktaFunctions.getEndUserMyRequests(GetEndUserMyRequestsArgs.builder()
                .entryId("cen123456789abcdefgh")
                .id("reqABCDEFG0123456789")
                .build());
    
            ctx.export("requestStatus", example.status());
            ctx.export("requestFieldValues", example.requesterFieldValues());
        }
    }
    
    variables:
      # Get a request by its catalog entry ID and request ID
      example:
        fn::invoke:
          function: okta:getEndUserMyRequests
          arguments:
            entryId: cen123456789abcdefgh
            id: reqABCDEFG0123456789
    outputs:
      # Output the request status
      requestStatus: ${example.status}
      # Output specific field values
      requestFieldValues: ${example.requesterFieldValues}
    

    Field Type Reference

    Field Types and Values

    • TEXT: Contains free-form text input in the value attribute
    • SELECT: Contains single selection value in the value attribute
    • MULTISELECT: Contains multiple selection values in the values attribute (list)
    • DURATION: Contains time duration specification in the value attribute (e.g., “5 days”, “2 weeks”)
    • ISO_DATE: Contains date specification in ISO format in the value attribute
    • OKTA_USER_ID: Contains Okta user ID in the value attribute

    Usage Notes

    • For MULTISELECT type fields, the values will be in the values attribute as a list
    • For all other field types, the value will be in the value attribute as a string
    • The label and type attributes provide metadata about the field structure
    • Field definitions and requirements are determined by the approval system configuration

    Limitations and Considerations

    1. Read-Only: This data source only retrieves existing request information and cannot modify requests.

    2. Identity Governance Licensing: This data source requires Okta Identity Governance licensing and proper configuration.

    3. Request Lifecycle: The data reflects the current state of the request in the approval workflow.

    4. Field Structure: The field structure and available types depend on the approval system configuration in Okta Identity Governance.

    Using getEndUserMyRequests

    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 getEndUserMyRequests(args: GetEndUserMyRequestsArgs, opts?: InvokeOptions): Promise<GetEndUserMyRequestsResult>
    function getEndUserMyRequestsOutput(args: GetEndUserMyRequestsOutputArgs, opts?: InvokeOptions): Output<GetEndUserMyRequestsResult>
    def get_end_user_my_requests(entry_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 requested: Optional[GetEndUserMyRequestsRequested] = None,
                                 requested_by: Optional[GetEndUserMyRequestsRequestedBy] = None,
                                 requested_for: Optional[GetEndUserMyRequestsRequestedFor] = None,
                                 requester_field_values: Optional[Sequence[GetEndUserMyRequestsRequesterFieldValue]] = None,
                                 risk_assessment: Optional[GetEndUserMyRequestsRiskAssessment] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetEndUserMyRequestsResult
    def get_end_user_my_requests_output(entry_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 requested: Optional[pulumi.Input[GetEndUserMyRequestsRequestedArgs]] = None,
                                 requested_by: Optional[pulumi.Input[GetEndUserMyRequestsRequestedByArgs]] = None,
                                 requested_for: Optional[pulumi.Input[GetEndUserMyRequestsRequestedForArgs]] = None,
                                 requester_field_values: Optional[pulumi.Input[Sequence[pulumi.Input[GetEndUserMyRequestsRequesterFieldValueArgs]]]] = None,
                                 risk_assessment: Optional[pulumi.Input[GetEndUserMyRequestsRiskAssessmentArgs]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetEndUserMyRequestsResult]
    func LookupEndUserMyRequests(ctx *Context, args *LookupEndUserMyRequestsArgs, opts ...InvokeOption) (*LookupEndUserMyRequestsResult, error)
    func LookupEndUserMyRequestsOutput(ctx *Context, args *LookupEndUserMyRequestsOutputArgs, opts ...InvokeOption) LookupEndUserMyRequestsResultOutput

    > Note: This function is named LookupEndUserMyRequests in the Go SDK.

    public static class GetEndUserMyRequests 
    {
        public static Task<GetEndUserMyRequestsResult> InvokeAsync(GetEndUserMyRequestsArgs args, InvokeOptions? opts = null)
        public static Output<GetEndUserMyRequestsResult> Invoke(GetEndUserMyRequestsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEndUserMyRequestsResult> getEndUserMyRequests(GetEndUserMyRequestsArgs args, InvokeOptions options)
    public static Output<GetEndUserMyRequestsResult> getEndUserMyRequests(GetEndUserMyRequestsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getEndUserMyRequests:getEndUserMyRequests
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EntryId string
    The ID of the catalog entry for which the request was made.
    Id string
    The ID of the request to retrieve.
    Requested GetEndUserMyRequestsRequested
    RequestedBy GetEndUserMyRequestsRequestedBy
    RequestedFor GetEndUserMyRequestsRequestedFor
    RequesterFieldValues List<GetEndUserMyRequestsRequesterFieldValue>
    The requester input fields and their values from the request.
    RiskAssessment GetEndUserMyRequestsRiskAssessment
    EntryId string
    The ID of the catalog entry for which the request was made.
    Id string
    The ID of the request to retrieve.
    Requested GetEndUserMyRequestsRequested
    RequestedBy GetEndUserMyRequestsRequestedBy
    RequestedFor GetEndUserMyRequestsRequestedFor
    RequesterFieldValues []GetEndUserMyRequestsRequesterFieldValue
    The requester input fields and their values from the request.
    RiskAssessment GetEndUserMyRequestsRiskAssessment
    entryId String
    The ID of the catalog entry for which the request was made.
    id String
    The ID of the request to retrieve.
    requested GetEndUserMyRequestsRequested
    requestedBy GetEndUserMyRequestsRequestedBy
    requestedFor GetEndUserMyRequestsRequestedFor
    requesterFieldValues List<GetEndUserMyRequestsRequesterFieldValue>
    The requester input fields and their values from the request.
    riskAssessment GetEndUserMyRequestsRiskAssessment
    entryId string
    The ID of the catalog entry for which the request was made.
    id string
    The ID of the request to retrieve.
    requested GetEndUserMyRequestsRequested
    requestedBy GetEndUserMyRequestsRequestedBy
    requestedFor GetEndUserMyRequestsRequestedFor
    requesterFieldValues GetEndUserMyRequestsRequesterFieldValue[]
    The requester input fields and their values from the request.
    riskAssessment GetEndUserMyRequestsRiskAssessment
    entryId String
    The ID of the catalog entry for which the request was made.
    id String
    The ID of the request to retrieve.
    requested Property Map
    requestedBy Property Map
    requestedFor Property Map
    requesterFieldValues List<Property Map>
    The requester input fields and their values from the request.
    riskAssessment Property Map

    getEndUserMyRequests Result

    The following output properties are available:

    AccessDuration string
    Created string
    CreatedBy string
    EntryId string
    The ID of the catalog entry for which the request was made.
    GrantStatus string
    Granted string
    Id string
    The ID of the request to retrieve.
    LastUpdated string
    LastUpdatedBy string
    Resolved string
    RevocationScheduled string
    RevocationStatus string
    Revoked string
    Status string
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    Requested GetEndUserMyRequestsRequested
    RequestedBy GetEndUserMyRequestsRequestedBy
    RequestedFor GetEndUserMyRequestsRequestedFor
    RequesterFieldValues List<GetEndUserMyRequestsRequesterFieldValue>
    The requester input fields and their values from the request.
    RiskAssessment GetEndUserMyRequestsRiskAssessment
    AccessDuration string
    Created string
    CreatedBy string
    EntryId string
    The ID of the catalog entry for which the request was made.
    GrantStatus string
    Granted string
    Id string
    The ID of the request to retrieve.
    LastUpdated string
    LastUpdatedBy string
    Resolved string
    RevocationScheduled string
    RevocationStatus string
    Revoked string
    Status string
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    Requested GetEndUserMyRequestsRequested
    RequestedBy GetEndUserMyRequestsRequestedBy
    RequestedFor GetEndUserMyRequestsRequestedFor
    RequesterFieldValues []GetEndUserMyRequestsRequesterFieldValue
    The requester input fields and their values from the request.
    RiskAssessment GetEndUserMyRequestsRiskAssessment
    accessDuration String
    created String
    createdBy String
    entryId String
    The ID of the catalog entry for which the request was made.
    grantStatus String
    granted String
    id String
    The ID of the request to retrieve.
    lastUpdated String
    lastUpdatedBy String
    resolved String
    revocationScheduled String
    revocationStatus String
    revoked String
    status String
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    requested GetEndUserMyRequestsRequested
    requestedBy GetEndUserMyRequestsRequestedBy
    requestedFor GetEndUserMyRequestsRequestedFor
    requesterFieldValues List<GetEndUserMyRequestsRequesterFieldValue>
    The requester input fields and their values from the request.
    riskAssessment GetEndUserMyRequestsRiskAssessment
    accessDuration string
    created string
    createdBy string
    entryId string
    The ID of the catalog entry for which the request was made.
    grantStatus string
    granted string
    id string
    The ID of the request to retrieve.
    lastUpdated string
    lastUpdatedBy string
    resolved string
    revocationScheduled string
    revocationStatus string
    revoked string
    status string
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    requested GetEndUserMyRequestsRequested
    requestedBy GetEndUserMyRequestsRequestedBy
    requestedFor GetEndUserMyRequestsRequestedFor
    requesterFieldValues GetEndUserMyRequestsRequesterFieldValue[]
    The requester input fields and their values from the request.
    riskAssessment GetEndUserMyRequestsRiskAssessment
    access_duration str
    created str
    created_by str
    entry_id str
    The ID of the catalog entry for which the request was made.
    grant_status str
    granted str
    id str
    The ID of the request to retrieve.
    last_updated str
    last_updated_by str
    resolved str
    revocation_scheduled str
    revocation_status str
    revoked str
    status str
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    requested GetEndUserMyRequestsRequested
    requested_by GetEndUserMyRequestsRequestedBy
    requested_for GetEndUserMyRequestsRequestedFor
    requester_field_values Sequence[GetEndUserMyRequestsRequesterFieldValue]
    The requester input fields and their values from the request.
    risk_assessment GetEndUserMyRequestsRiskAssessment
    accessDuration String
    created String
    createdBy String
    entryId String
    The ID of the catalog entry for which the request was made.
    grantStatus String
    granted String
    id String
    The ID of the request to retrieve.
    lastUpdated String
    lastUpdatedBy String
    resolved String
    revocationScheduled String
    revocationStatus String
    revoked String
    status String
    The current status of the request. Possible values include: APPROVED, CANCELED, DENIED, EXPIRED, PENDING, REJECTED, SUBMITTED
    requested Property Map
    requestedBy Property Map
    requestedFor Property Map
    requesterFieldValues List<Property Map>
    The requester input fields and their values from the request.
    riskAssessment Property Map

    Supporting Types

    GetEndUserMyRequestsRequested

    AccessScopeId string
    ID of the access scope
    AccessScopeType string
    The access scope type
    EntryId string
    The ID of the catalog entry for which the request was made.
    ResourceId string
    The requested resource ID
    ResourceType string
    The requested resource type.
    AccessScopeId string
    ID of the access scope
    AccessScopeType string
    The access scope type
    EntryId string
    The ID of the catalog entry for which the request was made.
    ResourceId string
    The requested resource ID
    ResourceType string
    The requested resource type.
    accessScopeId String
    ID of the access scope
    accessScopeType String
    The access scope type
    entryId String
    The ID of the catalog entry for which the request was made.
    resourceId String
    The requested resource ID
    resourceType String
    The requested resource type.
    accessScopeId string
    ID of the access scope
    accessScopeType string
    The access scope type
    entryId string
    The ID of the catalog entry for which the request was made.
    resourceId string
    The requested resource ID
    resourceType string
    The requested resource type.
    access_scope_id str
    ID of the access scope
    access_scope_type str
    The access scope type
    entry_id str
    The ID of the catalog entry for which the request was made.
    resource_id str
    The requested resource ID
    resource_type str
    The requested resource type.
    accessScopeId String
    ID of the access scope
    accessScopeType String
    The access scope type
    entryId String
    The ID of the catalog entry for which the request was made.
    resourceId String
    The requested resource ID
    resourceType String
    The requested resource type.

    GetEndUserMyRequestsRequestedBy

    ExternalId string
    The Okta user id
    Type string
    The type of principal
    ExternalId string
    The Okta user id
    Type string
    The type of principal
    externalId String
    The Okta user id
    type String
    The type of principal
    externalId string
    The Okta user id
    type string
    The type of principal
    external_id str
    The Okta user id
    type str
    The type of principal
    externalId String
    The Okta user id
    type String
    The type of principal

    GetEndUserMyRequestsRequestedFor

    ExternalId string
    The Okta user id
    Type string
    The type of principal
    ExternalId string
    The Okta user id
    Type string
    The type of principal
    externalId String
    The Okta user id
    type String
    The type of principal
    externalId string
    The Okta user id
    type string
    The type of principal
    external_id str
    The Okta user id
    type str
    The type of principal
    externalId String
    The Okta user id
    type String
    The type of principal

    GetEndUserMyRequestsRequesterFieldValue

    Id string
    The ID of the requester field.
    Label string
    A human-readable description of the requester field.
    Type string
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    Value string
    The value of the requester field (for single-value fields).
    Values List<string>
    The values of the requester field (for MULTISELECT type fields).
    Id string
    The ID of the requester field.
    Label string
    A human-readable description of the requester field.
    Type string
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    Value string
    The value of the requester field (for single-value fields).
    Values []string
    The values of the requester field (for MULTISELECT type fields).
    id String
    The ID of the requester field.
    label String
    A human-readable description of the requester field.
    type String
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    value String
    The value of the requester field (for single-value fields).
    values List<String>
    The values of the requester field (for MULTISELECT type fields).
    id string
    The ID of the requester field.
    label string
    A human-readable description of the requester field.
    type string
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    value string
    The value of the requester field (for single-value fields).
    values string[]
    The values of the requester field (for MULTISELECT type fields).
    id str
    The ID of the requester field.
    label str
    A human-readable description of the requester field.
    type str
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    value str
    The value of the requester field (for single-value fields).
    values Sequence[str]
    The values of the requester field (for MULTISELECT type fields).
    id String
    The ID of the requester field.
    label String
    A human-readable description of the requester field.
    type String
    Type of value for the requester field. Valid values: DURATION, ISO_DATE, MULTISELECT, OKTA_USER_ID, SELECT, TEXT.
    value String
    The value of the requester field (for single-value fields).
    values List<String>
    The values of the requester field (for MULTISELECT type fields).

    GetEndUserMyRequestsRiskAssessment

    RequestSubmissionType string
    Whether request submission is allowed or restricted in the risk settings.
    RiskRules List<GetEndUserMyRequestsRiskAssessmentRiskRule>
    An array of resources that are excluded from the review.
    RequestSubmissionType string
    Whether request submission is allowed or restricted in the risk settings.
    RiskRules []GetEndUserMyRequestsRiskAssessmentRiskRule
    An array of resources that are excluded from the review.
    requestSubmissionType String
    Whether request submission is allowed or restricted in the risk settings.
    riskRules List<GetEndUserMyRequestsRiskAssessmentRiskRule>
    An array of resources that are excluded from the review.
    requestSubmissionType string
    Whether request submission is allowed or restricted in the risk settings.
    riskRules GetEndUserMyRequestsRiskAssessmentRiskRule[]
    An array of resources that are excluded from the review.
    request_submission_type str
    Whether request submission is allowed or restricted in the risk settings.
    risk_rules Sequence[GetEndUserMyRequestsRiskAssessmentRiskRule]
    An array of resources that are excluded from the review.
    requestSubmissionType String
    Whether request submission is allowed or restricted in the risk settings.
    riskRules List<Property Map>
    An array of resources that are excluded from the review.

    GetEndUserMyRequestsRiskAssessmentRiskRule

    Description string
    The human readable description.
    Name string
    The name of a resource rule causing a conflict.
    ResourceName string
    Human readable name of the resource.
    Description string
    The human readable description.
    Name string
    The name of a resource rule causing a conflict.
    ResourceName string
    Human readable name of the resource.
    description String
    The human readable description.
    name String
    The name of a resource rule causing a conflict.
    resourceName String
    Human readable name of the resource.
    description string
    The human readable description.
    name string
    The name of a resource rule causing a conflict.
    resourceName string
    Human readable name of the resource.
    description str
    The human readable description.
    name str
    The name of a resource rule causing a conflict.
    resource_name str
    Human readable name of the resource.
    description String
    The human readable description.
    name String
    The name of a resource rule causing a conflict.
    resourceName String
    Human readable name of the resource.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v6.0.0 published on Friday, Oct 10, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate