okta.getEndUserMyRequests
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 thevalues
attribute as a list - For all other field types, the value will be in the
value
attribute as a string - The
label
andtype
attributes provide metadata about the field structure - Field definitions and requirements are determined by the approval system configuration
Limitations and Considerations
Read-Only: This data source only retrieves existing request information and cannot modify requests.
Identity Governance Licensing: This data source requires Okta Identity Governance licensing and proper configuration.
Request Lifecycle: The data reflects the current state of the request in the approval workflow.
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:
- Entry
Id string - The ID of the catalog entry for which the request was made.
- Id string
- The ID of the request to retrieve.
- Requested
Get
End User My Requests Requested - Requested
By GetEnd User My Requests Requested By - Requested
For GetEnd User My Requests Requested For - Requester
Field List<GetValues End User My Requests Requester Field Value> - The requester input fields and their values from the request.
- Risk
Assessment GetEnd User My Requests Risk Assessment
- Entry
Id string - The ID of the catalog entry for which the request was made.
- Id string
- The ID of the request to retrieve.
- Requested
Get
End User My Requests Requested - Requested
By GetEnd User My Requests Requested By - Requested
For GetEnd User My Requests Requested For - Requester
Field []GetValues End User My Requests Requester Field Value - The requester input fields and their values from the request.
- Risk
Assessment GetEnd User My Requests Risk Assessment
- entry
Id String - The ID of the catalog entry for which the request was made.
- id String
- The ID of the request to retrieve.
- requested
Get
End User My Requests Requested - requested
By GetEnd User My Requests Requested By - requested
For GetEnd User My Requests Requested For - requester
Field List<GetValues End User My Requests Requester Field Value> - The requester input fields and their values from the request.
- risk
Assessment GetEnd User My Requests Risk Assessment
- entry
Id string - The ID of the catalog entry for which the request was made.
- id string
- The ID of the request to retrieve.
- requested
Get
End User My Requests Requested - requested
By GetEnd User My Requests Requested By - requested
For GetEnd User My Requests Requested For - requester
Field GetValues End User My Requests Requester Field Value[] - The requester input fields and their values from the request.
- risk
Assessment GetEnd User My Requests Risk Assessment
- entry_
id str - The ID of the catalog entry for which the request was made.
- id str
- The ID of the request to retrieve.
- requested
Get
End User My Requests Requested - requested_
by GetEnd User My Requests Requested By - requested_
for GetEnd User My Requests Requested For - requester_
field_ Sequence[Getvalues End User My Requests Requester Field Value] - The requester input fields and their values from the request.
- risk_
assessment GetEnd User My Requests Risk Assessment
- entry
Id 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
- requested
By Property Map - requested
For Property Map - requester
Field List<Property Map>Values - The requester input fields and their values from the request.
- risk
Assessment Property Map
getEndUserMyRequests Result
The following output properties are available:
- Access
Duration string - Created string
- Created
By string - Entry
Id string - The ID of the catalog entry for which the request was made.
- Grant
Status string - Granted string
- Id string
- The ID of the request to retrieve.
- Last
Updated string - Last
Updated stringBy - Resolved string
- Revocation
Scheduled string - Revocation
Status string - Revoked string
- Status string
- The current status of the request. Possible values include:
APPROVED
,CANCELED
,DENIED
,EXPIRED
,PENDING
,REJECTED
,SUBMITTED
- Requested
Get
End User My Requests Requested - Requested
By GetEnd User My Requests Requested By - Requested
For GetEnd User My Requests Requested For - Requester
Field List<GetValues End User My Requests Requester Field Value> - The requester input fields and their values from the request.
- Risk
Assessment GetEnd User My Requests Risk Assessment
- Access
Duration string - Created string
- Created
By string - Entry
Id string - The ID of the catalog entry for which the request was made.
- Grant
Status string - Granted string
- Id string
- The ID of the request to retrieve.
- Last
Updated string - Last
Updated stringBy - Resolved string
- Revocation
Scheduled string - Revocation
Status string - Revoked string
- Status string
- The current status of the request. Possible values include:
APPROVED
,CANCELED
,DENIED
,EXPIRED
,PENDING
,REJECTED
,SUBMITTED
- Requested
Get
End User My Requests Requested - Requested
By GetEnd User My Requests Requested By - Requested
For GetEnd User My Requests Requested For - Requester
Field []GetValues End User My Requests Requester Field Value - The requester input fields and their values from the request.
- Risk
Assessment GetEnd User My Requests Risk Assessment
- access
Duration String - created String
- created
By String - entry
Id String - The ID of the catalog entry for which the request was made.
- grant
Status String - granted String
- id String
- The ID of the request to retrieve.
- last
Updated String - last
Updated StringBy - resolved String
- revocation
Scheduled String - revocation
Status String - revoked String
- status String
- The current status of the request. Possible values include:
APPROVED
,CANCELED
,DENIED
,EXPIRED
,PENDING
,REJECTED
,SUBMITTED
- requested
Get
End User My Requests Requested - requested
By GetEnd User My Requests Requested By - requested
For GetEnd User My Requests Requested For - requester
Field List<GetValues End User My Requests Requester Field Value> - The requester input fields and their values from the request.
- risk
Assessment GetEnd User My Requests Risk Assessment
- access
Duration string - created string
- created
By string - entry
Id string - The ID of the catalog entry for which the request was made.
- grant
Status string - granted string
- id string
- The ID of the request to retrieve.
- last
Updated string - last
Updated stringBy - resolved string
- revocation
Scheduled string - revocation
Status string - revoked string
- status string
- The current status of the request. Possible values include:
APPROVED
,CANCELED
,DENIED
,EXPIRED
,PENDING
,REJECTED
,SUBMITTED
- requested
Get
End User My Requests Requested - requested
By GetEnd User My Requests Requested By - requested
For GetEnd User My Requests Requested For - requester
Field GetValues End User My Requests Requester Field Value[] - The requester input fields and their values from the request.
- risk
Assessment GetEnd User My Requests Risk Assessment
- 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_ strby - 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
Get
End User My Requests Requested - requested_
by GetEnd User My Requests Requested By - requested_
for GetEnd User My Requests Requested For - requester_
field_ Sequence[Getvalues End User My Requests Requester Field Value] - The requester input fields and their values from the request.
- risk_
assessment GetEnd User My Requests Risk Assessment
- access
Duration String - created String
- created
By String - entry
Id String - The ID of the catalog entry for which the request was made.
- grant
Status String - granted String
- id String
- The ID of the request to retrieve.
- last
Updated String - last
Updated StringBy - resolved String
- revocation
Scheduled String - revocation
Status String - revoked String
- status String
- The current status of the request. Possible values include:
APPROVED
,CANCELED
,DENIED
,EXPIRED
,PENDING
,REJECTED
,SUBMITTED
- requested Property Map
- requested
By Property Map - requested
For Property Map - requester
Field List<Property Map>Values - The requester input fields and their values from the request.
- risk
Assessment Property Map
Supporting Types
GetEndUserMyRequestsRequested
- Access
Scope stringId - ID of the access scope
- Access
Scope stringType - The access scope type
- Entry
Id string - The ID of the catalog entry for which the request was made.
- Resource
Id string - The requested resource ID
- Resource
Type string - The requested resource type.
- Access
Scope stringId - ID of the access scope
- Access
Scope stringType - The access scope type
- Entry
Id string - The ID of the catalog entry for which the request was made.
- Resource
Id string - The requested resource ID
- Resource
Type string - The requested resource type.
- access
Scope StringId - ID of the access scope
- access
Scope StringType - The access scope type
- entry
Id String - The ID of the catalog entry for which the request was made.
- resource
Id String - The requested resource ID
- resource
Type String - The requested resource type.
- access
Scope stringId - ID of the access scope
- access
Scope stringType - The access scope type
- entry
Id string - The ID of the catalog entry for which the request was made.
- resource
Id string - The requested resource ID
- resource
Type string - The requested resource type.
- access_
scope_ strid - ID of the access scope
- access_
scope_ strtype - 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.
- access
Scope StringId - ID of the access scope
- access
Scope StringType - The access scope type
- entry
Id String - The ID of the catalog entry for which the request was made.
- resource
Id String - The requested resource ID
- resource
Type String - The requested resource type.
GetEndUserMyRequestsRequestedBy
- External
Id string - The Okta user id
- Type string
- The type of principal
- External
Id string - The Okta user id
- Type string
- The type of principal
- external
Id String - The Okta user id
- type String
- The type of principal
- external
Id string - The Okta user id
- type string
- The type of principal
- external_
id str - The Okta user id
- type str
- The type of principal
- external
Id String - The Okta user id
- type String
- The type of principal
GetEndUserMyRequestsRequestedFor
- External
Id string - The Okta user id
- Type string
- The type of principal
- External
Id string - The Okta user id
- Type string
- The type of principal
- external
Id String - The Okta user id
- type String
- The type of principal
- external
Id string - The Okta user id
- type string
- The type of principal
- external_
id str - The Okta user id
- type str
- The type of principal
- external
Id 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
- Request
Submission stringType - Whether request submission is allowed or restricted in the risk settings.
- Risk
Rules List<GetEnd User My Requests Risk Assessment Risk Rule> - An array of resources that are excluded from the review.
- Request
Submission stringType - Whether request submission is allowed or restricted in the risk settings.
- Risk
Rules []GetEnd User My Requests Risk Assessment Risk Rule - An array of resources that are excluded from the review.
- request
Submission StringType - Whether request submission is allowed or restricted in the risk settings.
- risk
Rules List<GetEnd User My Requests Risk Assessment Risk Rule> - An array of resources that are excluded from the review.
- request
Submission stringType - Whether request submission is allowed or restricted in the risk settings.
- risk
Rules GetEnd User My Requests Risk Assessment Risk Rule[] - An array of resources that are excluded from the review.
- request_
submission_ strtype - Whether request submission is allowed or restricted in the risk settings.
- risk_
rules Sequence[GetEnd User My Requests Risk Assessment Risk Rule] - An array of resources that are excluded from the review.
- request
Submission StringType - Whether request submission is allowed or restricted in the risk settings.
- risk
Rules 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.
- Resource
Name string - Human readable name of the resource.
- Description string
- The human readable description.
- Name string
- The name of a resource rule causing a conflict.
- Resource
Name string - Human readable name of the resource.
- description String
- The human readable description.
- name String
- The name of a resource rule causing a conflict.
- resource
Name String - Human readable name of the resource.
- description string
- The human readable description.
- name string
- The name of a resource rule causing a conflict.
- resource
Name 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.
- resource
Name 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.