mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 04:19:37 +00:00
Update to powershell SDK docs: 13207859154
This commit is contained in:
@@ -81,9 +81,12 @@ Method | HTTP request | Description
|
||||
[**Deny-V2024NonEmployeeRequest**](#reject-non-employee-request) | **POST** `/non-employee-approvals/{id}/reject` | Reject a Non-Employee Request
|
||||
[**Update-V2024NonEmployeeRecord**](#update-non-employee-record) | **PUT** `/non-employee-records/{id}` | Update Non-Employee Record
|
||||
|
||||
|
||||
## approve-non-employee-request
|
||||
Approves a non-employee approval request and notifies the next approver. The current user must be the requested approver.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/approve-non-employee-request)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -118,20 +121,23 @@ $NonEmployeeApprovalDecision = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeApprovalDecision -Json $NonEmployeeApprovalDecision
|
||||
Approve-V2024NonEmployeeRequest -V2024Id $Id -V2024NonEmployeeApprovalDecision $Result
|
||||
Approve-V2024NonEmployeeRequest -Id $Id -V2024NonEmployeeApprovalDecision $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Approve-V2024NonEmployeeRequest -V2024Id $Id -V2024NonEmployeeApprovalDecision $NonEmployeeApprovalDecision
|
||||
# Approve-V2024NonEmployeeRequest -Id $Id -V2024NonEmployeeApprovalDecision $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Approve-V2024NonEmployeeRequest"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## create-non-employee-record
|
||||
This request will create a non-employee record.
|
||||
Requires role context of `idn:nesr:create`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/create-non-employee-record)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -175,19 +181,22 @@ $NonEmployeeRequestBody = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeRequestBody -Json $NonEmployeeRequestBody
|
||||
New-V2024NonEmployeeRecord -V2024NonEmployeeRequestBody $Result
|
||||
New-V2024NonEmployeeRecord -V2024NonEmployeeRequestBody $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# New-V2024NonEmployeeRecord -V2024NonEmployeeRequestBody $NonEmployeeRequestBody
|
||||
# New-V2024NonEmployeeRecord -V2024NonEmployeeRequestBody $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-V2024NonEmployeeRecord"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## create-non-employee-request
|
||||
This request will create a non-employee request and notify the approver. Requires role context of `idn:nesr:create` or the user must own the source.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/create-non-employee-request)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -231,19 +240,22 @@ $NonEmployeeRequestBody = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeRequestBody -Json $NonEmployeeRequestBody
|
||||
New-V2024NonEmployeeRequest -V2024NonEmployeeRequestBody $Result
|
||||
New-V2024NonEmployeeRequest -V2024NonEmployeeRequestBody $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# New-V2024NonEmployeeRequest -V2024NonEmployeeRequestBody $NonEmployeeRequestBody
|
||||
# New-V2024NonEmployeeRequest -V2024NonEmployeeRequestBody $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-V2024NonEmployeeRequest"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## create-non-employee-source
|
||||
This request will create a non-employee source. Requires role context of `idn:nesr:create`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/create-non-employee-source)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -299,20 +311,23 @@ $NonEmployeeSourceRequestBody = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeSourceRequestBody -Json $NonEmployeeSourceRequestBody
|
||||
New-V2024NonEmployeeSource -V2024NonEmployeeSourceRequestBody $Result
|
||||
New-V2024NonEmployeeSource -V2024NonEmployeeSourceRequestBody $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# New-V2024NonEmployeeSource -V2024NonEmployeeSourceRequestBody $NonEmployeeSourceRequestBody
|
||||
# New-V2024NonEmployeeSource -V2024NonEmployeeSourceRequestBody $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-V2024NonEmployeeSource"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## create-non-employee-source-schema-attributes
|
||||
This API creates a new schema attribute for Non-Employee Source. The schema technical name must be unique in the source. Attempts to create a schema attribute with an existing name will result in a "400.1.409 Reference conflict" response. At most, 10 custom attributes can be created per schema. Attempts to create more than 10 will result in a "400.1.4 Limit violation" response.
|
||||
Requires role context of `idn:nesr:create`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/create-non-employee-source-schema-attributes)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -352,20 +367,23 @@ $NonEmployeeSchemaAttributeBody = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeSchemaAttributeBody -Json $NonEmployeeSchemaAttributeBody
|
||||
New-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId -V2024NonEmployeeSchemaAttributeBody $Result
|
||||
New-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId -V2024NonEmployeeSchemaAttributeBody $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# New-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId -V2024NonEmployeeSchemaAttributeBody $NonEmployeeSchemaAttributeBody
|
||||
# New-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId -V2024NonEmployeeSchemaAttributeBody $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-V2024NonEmployeeSourceSchemaAttributes"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-record
|
||||
This request will delete a non-employee record.
|
||||
Requires role context of `idn:nesr:delete`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-record)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -395,19 +413,22 @@ $Id = "ef38f94347e94562b5bb8424a56397d8" # String | Non-Employee record id (UUID
|
||||
# Delete Non-Employee Record
|
||||
|
||||
try {
|
||||
Remove-V2024NonEmployeeRecord -V2024Id $Id
|
||||
Remove-V2024NonEmployeeRecord -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeRecord -V2024Id $Id
|
||||
# Remove-V2024NonEmployeeRecord -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeRecord"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-records-in-bulk
|
||||
This request will delete multiple non-employee records based on the non-employee ids provided. Requires role context of `idn:nesr:delete`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-records-in-bulk)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -438,20 +459,23 @@ $DeleteNonEmployeeRecordsInBulkRequest = @""@
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToDeleteNonEmployeeRecordsInBulkRequest -Json $DeleteNonEmployeeRecordsInBulkRequest
|
||||
Remove-V2024NonEmployeeRecordsInBulk -V2024DeleteNonEmployeeRecordsInBulkRequest $Result
|
||||
Remove-V2024NonEmployeeRecordsInBulk -V2024DeleteNonEmployeeRecordsInBulkRequest $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeRecordsInBulk -V2024DeleteNonEmployeeRecordsInBulkRequest $DeleteNonEmployeeRecordsInBulkRequest
|
||||
# Remove-V2024NonEmployeeRecordsInBulk -V2024DeleteNonEmployeeRecordsInBulkRequest $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeRecordsInBulk"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-request
|
||||
This request will delete a non-employee request.
|
||||
Requires role context of `idn:nesr:delete`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-request)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -482,21 +506,24 @@ $Id = "ac110005-7156-1150-8171-5b292e3e0084" # String | Non-Employee request id
|
||||
# Delete Non-Employee Request
|
||||
|
||||
try {
|
||||
Remove-V2024NonEmployeeRequest -V2024Id $Id
|
||||
Remove-V2024NonEmployeeRequest -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeRequest -V2024Id $Id
|
||||
# Remove-V2024NonEmployeeRequest -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeRequest"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-schema-attribute
|
||||
This end-point deletes a specific schema attribute for a non-employee source.
|
||||
Requires role context of `idn:nesr:delete`
|
||||
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-schema-attribute)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -528,19 +555,22 @@ $SourceId = "ef38f94347e94562b5bb8424a56397d8" # String | The Source id
|
||||
# Delete a Schema Attribute for Non-Employee Source
|
||||
|
||||
try {
|
||||
Remove-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId
|
||||
Remove-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId
|
||||
# Remove-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeSchemaAttribute"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-source
|
||||
This request will delete a non-employee source. Requires role context of `idn:nesr:delete`.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-source)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -570,19 +600,22 @@ $SourceId = "e136567de87e4d029e60b3c3c55db56d" # String | Source Id
|
||||
# Delete Non-Employee Source
|
||||
|
||||
try {
|
||||
Remove-V2024NonEmployeeSource -V2024SourceId $SourceId
|
||||
Remove-V2024NonEmployeeSource -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeSource -V2024SourceId $SourceId
|
||||
# Remove-V2024NonEmployeeSource -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeSource"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## delete-non-employee-source-schema-attributes
|
||||
This end-point deletes all custom schema attributes for a non-employee source. Requires role context of `idn:nesr:delete`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/delete-non-employee-source-schema-attributes)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -612,19 +645,22 @@ $SourceId = "ef38f94347e94562b5bb8424a56397d8" # String | The Source id
|
||||
# Delete all custom schema attributes for Non-Employee Source
|
||||
|
||||
try {
|
||||
Remove-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId
|
||||
Remove-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Remove-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId
|
||||
# Remove-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-V2024NonEmployeeSourceSchemaAttributes"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## export-non-employee-records
|
||||
This requests a CSV download for all non-employees from a provided source. Requires role context of `idn:nesr:read`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/export-non-employee-records)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -655,19 +691,22 @@ $Id = "e136567de87e4d029e60b3c3c55db56d" # String | Source Id (UUID)
|
||||
# Exports Non-Employee Records to CSV
|
||||
|
||||
try {
|
||||
Export-V2024NonEmployeeRecords -V2024Id $Id
|
||||
Export-V2024NonEmployeeRecords -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Export-V2024NonEmployeeRecords -V2024Id $Id
|
||||
# Export-V2024NonEmployeeRecords -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Export-V2024NonEmployeeRecords"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## export-non-employee-source-schema-template
|
||||
This requests a download for the Source Schema Template for a provided source. Requires role context of `idn:nesr:read`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/export-non-employee-source-schema-template)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -698,22 +737,25 @@ $Id = "ef38f94347e94562b5bb8424a56397d8" # String | Source Id (UUID)
|
||||
# Exports Source Schema Template
|
||||
|
||||
try {
|
||||
Export-V2024NonEmployeeSourceSchemaTemplate -V2024Id $Id
|
||||
Export-V2024NonEmployeeSourceSchemaTemplate -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Export-V2024NonEmployeeSourceSchemaTemplate -V2024Id $Id
|
||||
# Export-V2024NonEmployeeSourceSchemaTemplate -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Export-V2024NonEmployeeSourceSchemaTemplate"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-approval
|
||||
Gets a non-employee approval item detail. There are two contextual uses for this endpoint:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case they
|
||||
can get any approval.
|
||||
2. The user owns the requested approval.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-approval)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -745,16 +787,17 @@ $IncludeDetail = $true # Boolean | The object nonEmployeeRequest will not be inc
|
||||
# Get a non-employee approval item detail
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeApproval -V2024Id $Id
|
||||
Get-V2024NonEmployeeApproval -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeApproval -V2024Id $Id -V2024IncludeDetail $IncludeDetail
|
||||
# Get-V2024NonEmployeeApproval -Id $Id -IncludeDetail $IncludeDetail
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeApproval"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-approval-summary
|
||||
This request will retrieve a summary of non-employee approval requests. There are two contextual uses for the `requested-for` path parameter:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case he or
|
||||
@@ -762,6 +805,8 @@ she may request a summary of all non-employee approval requests assigned to a pa
|
||||
2. The current user is an approver, in which case "me" should be provided
|
||||
as the `requested-for` value. This will provide the approver with a summary of the approval items assigned to him or her.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-approval-summary)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -791,21 +836,24 @@ $RequestedFor = "2c91808280430dfb0180431a59440460" # String | The identity (UUID
|
||||
# Get Summary of Non-Employee Approval Requests
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeApprovalSummary -V2024RequestedFor $RequestedFor
|
||||
Get-V2024NonEmployeeApprovalSummary -RequestedFor $RequestedFor
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeApprovalSummary -V2024RequestedFor $RequestedFor
|
||||
# Get-V2024NonEmployeeApprovalSummary -RequestedFor $RequestedFor
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeApprovalSummary"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-bulk-upload-status
|
||||
The nonEmployeeBulkUploadStatus API returns the status of the newest bulk upload job for the specified source.
|
||||
Requires role context of `idn:nesr:read`
|
||||
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-bulk-upload-status)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -835,20 +883,23 @@ $Id = "e136567de87e4d029e60b3c3c55db56d" # String | Source ID (UUID)
|
||||
# Obtain the status of bulk upload on the source
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeBulkUploadStatus -V2024Id $Id
|
||||
Get-V2024NonEmployeeBulkUploadStatus -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeBulkUploadStatus -V2024Id $Id
|
||||
# Get-V2024NonEmployeeBulkUploadStatus -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeBulkUploadStatus"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-record
|
||||
This gets a non-employee record.
|
||||
Requires role context of `idn:nesr:read`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-record)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -878,16 +929,17 @@ $Id = "ef38f94347e94562b5bb8424a56397d8" # String | Non-Employee record id (UUID
|
||||
# Get a Non-Employee Record
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeRecord -V2024Id $Id
|
||||
Get-V2024NonEmployeeRecord -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeRecord -V2024Id $Id
|
||||
# Get-V2024NonEmployeeRecord -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeRecord"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-request
|
||||
This gets a non-employee request.
|
||||
There are two contextual uses for this endpoint:
|
||||
@@ -895,6 +947,8 @@ There are two contextual uses for this endpoint:
|
||||
can get the non-employee request for any user.
|
||||
2. The user must be the owner of the non-employee request.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-request)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -925,16 +979,17 @@ $Id = "ac110005-7156-1150-8171-5b292e3e0084" # String | Non-Employee request id
|
||||
# Get a Non-Employee Request
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeRequest -V2024Id $Id
|
||||
Get-V2024NonEmployeeRequest -Id $Id
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeRequest -V2024Id $Id
|
||||
# Get-V2024NonEmployeeRequest -Id $Id
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeRequest"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-request-summary
|
||||
This request will retrieve a summary of non-employee requests. There are two contextual uses for the `requested-for` path parameter:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case he or
|
||||
@@ -942,6 +997,8 @@ she may request a summary of all non-employee approval requests assigned to a pa
|
||||
2. The current user is an account manager, in which case "me" should be
|
||||
provided as the `requested-for` value. This will provide the user with a summary of the non-employee requests in the source(s) he or she manages.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-request-summary)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -971,19 +1028,22 @@ $RequestedFor = "2c91808280430dfb0180431a59440460" # String | The identity (UUID
|
||||
# Get Summary of Non-Employee Requests
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeRequestSummary -V2024RequestedFor $RequestedFor
|
||||
Get-V2024NonEmployeeRequestSummary -RequestedFor $RequestedFor
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeRequestSummary -V2024RequestedFor $RequestedFor
|
||||
# Get-V2024NonEmployeeRequestSummary -RequestedFor $RequestedFor
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeRequestSummary"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-schema-attribute
|
||||
This API gets a schema attribute by Id for the specified Non-Employee SourceId. Requires role context of `idn:nesr:read` or the user must be an account manager of the source.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-schema-attribute)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1015,16 +1075,17 @@ $SourceId = "ef38f94347e94562b5bb8424a56397d8" # String | The Source id
|
||||
# Get Schema Attribute Non-Employee Source
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId
|
||||
Get-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId
|
||||
# Get-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeSchemaAttribute"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-source
|
||||
This gets a non-employee source. There are two contextual uses for the requested-for path parameter:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case he or
|
||||
@@ -1032,6 +1093,8 @@ she may request any source.
|
||||
2. The current user is an account manager, in which case the user can only
|
||||
request sources that they own.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-source)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1061,20 +1124,23 @@ $SourceId = "2c91808b7c28b350017c2a2ec5790aa1" # String | Source Id
|
||||
# Get a Non-Employee Source
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeSource -V2024SourceId $SourceId
|
||||
Get-V2024NonEmployeeSource -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeSource -V2024SourceId $SourceId
|
||||
# Get-V2024NonEmployeeSource -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeSource"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## get-non-employee-source-schema-attributes
|
||||
This API gets the list of schema attributes for the specified Non-Employee SourceId. There are 8 mandatory attributes added to each new Non-Employee Source automatically. Additionaly, user can add up to 10 custom attributes. This interface returns all the mandatory attributes followed by any custom attributes. At most, a total of 18 attributes will be returned.
|
||||
Requires role context of `idn:nesr:read` or the user must be an account manager of the source.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/get-non-employee-source-schema-attributes)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1105,19 +1171,22 @@ $SourceId = "ef38f94347e94562b5bb8424a56397d8" # String | The Source id
|
||||
# List Schema Attributes Non-Employee Source
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId
|
||||
Get-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeSourceSchemaAttributes -V2024SourceId $SourceId
|
||||
# Get-V2024NonEmployeeSourceSchemaAttributes -SourceId $SourceId
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeSourceSchemaAttributes"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## import-non-employee-records-in-bulk
|
||||
This post will import, or update, Non-Employee records found in the CSV. Requires role context of `idn:nesr:create`
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/import-non-employee-records-in-bulk)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1150,16 +1219,17 @@ $Data = # System.IO.FileInfo |
|
||||
# Imports, or Updates, Non-Employee Records
|
||||
|
||||
try {
|
||||
Import-V2024NonEmployeeRecordsInBulk -V2024Id $Id -V2024Data $Data
|
||||
Import-V2024NonEmployeeRecordsInBulk -Id $Id -Data $Data
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Import-V2024NonEmployeeRecordsInBulk -V2024Id $Id -V2024Data $Data
|
||||
# Import-V2024NonEmployeeRecordsInBulk -Id $Id -Data $Data
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Import-V2024NonEmployeeRecordsInBulk"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## list-non-employee-approvals
|
||||
This gets a list of non-employee approval requests.
|
||||
There are two contextual uses for this endpoint:
|
||||
@@ -1167,6 +1237,8 @@ There are two contextual uses for this endpoint:
|
||||
can list the approvals for any approver.
|
||||
2. The user owns the requested approval.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/list-non-employee-approvals)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1206,21 +1278,24 @@ $Sorters = "created" # String | Sort results using the standard syntax described
|
||||
# Get List of Non-Employee Approval Requests
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeApprovals
|
||||
Get-V2024NonEmployeeApprovals
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeApprovals -V2024RequestedFor $RequestedFor -V2024Limit $Limit -V2024Offset $Offset -V2024Count $Count -V2024Filters $Filters -V2024Sorters $Sorters
|
||||
# Get-V2024NonEmployeeApprovals -RequestedFor $RequestedFor -Limit $Limit -Offset $Offset -Count $Count -Filters $Filters -Sorters $Sorters
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeApprovals"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## list-non-employee-records
|
||||
This gets a list of non-employee records. There are two contextual uses for this endpoint:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case they can get a list of all of the non-employees.
|
||||
2. The user is an account manager, in which case they can get a list of the non-employees that they manage.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/list-non-employee-records)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1258,16 +1333,17 @@ $Filters = 'sourceId eq "2c91808568c529c60168cca6f90c1313"' # String | Filter re
|
||||
# List Non-Employee Records
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeRecords
|
||||
Get-V2024NonEmployeeRecords
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeRecords -V2024Limit $Limit -V2024Offset $Offset -V2024Count $Count -V2024Sorters $Sorters -V2024Filters $Filters
|
||||
# Get-V2024NonEmployeeRecords -Limit $Limit -Offset $Offset -Count $Count -Sorters $Sorters -Filters $Filters
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeRecords"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## list-non-employee-requests
|
||||
This gets a list of non-employee requests. There are two contextual uses for the `requested-for` path parameter:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case he or
|
||||
@@ -1275,6 +1351,8 @@ she may request a list non-employee requests assigned to a particular account ma
|
||||
2. The current user is an account manager, in which case "me" should be
|
||||
provided as the `requested-for` value. This will provide the user with a list of the non-employee requests in the source(s) he or she manages.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/list-non-employee-requests)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1314,16 +1392,17 @@ $Filters = 'sourceId eq "2c91808568c529c60168cca6f90c1313"' # String | Filter re
|
||||
# List Non-Employee Requests
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeRequests -V2024RequestedFor $RequestedFor
|
||||
Get-V2024NonEmployeeRequests -RequestedFor $RequestedFor
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeRequests -V2024RequestedFor $RequestedFor -V2024Limit $Limit -V2024Offset $Offset -V2024Count $Count -V2024Sorters $Sorters -V2024Filters $Filters
|
||||
# Get-V2024NonEmployeeRequests -RequestedFor $RequestedFor -Limit $Limit -Offset $Offset -Count $Count -Sorters $Sorters -Filters $Filters
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeRequests"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## list-non-employee-sources
|
||||
This gets a list of non-employee sources. There are two contextual uses for the requested-for path parameter:
|
||||
1. The user has the role context of `idn:nesr:read`, in which case he or
|
||||
@@ -1331,6 +1410,8 @@ she may request a list sources assigned to a particular account manager by passi
|
||||
2. The current user is an account manager, in which case "me" should be
|
||||
provided as the `requested-for` value. This will provide the user with a list of the sources that he or she owns.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/list-non-employee-sources)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1370,16 +1451,17 @@ $Sorters = "name,created" # String | Sort results using the standard syntax desc
|
||||
# List Non-Employee Sources
|
||||
|
||||
try {
|
||||
Get-V2024NonEmployeeSources -V2024RequestedFor $RequestedFor
|
||||
Get-V2024NonEmployeeSources -RequestedFor $RequestedFor
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Get-V2024NonEmployeeSources -V2024RequestedFor $RequestedFor -V2024Limit $Limit -V2024Offset $Offset -V2024Count $Count -V2024NonEmployeeCount $NonEmployeeCount -V2024Sorters $Sorters
|
||||
# Get-V2024NonEmployeeSources -RequestedFor $RequestedFor -Limit $Limit -Offset $Offset -Count $Count -NonEmployeeCount $NonEmployeeCount -Sorters $Sorters
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-V2024NonEmployeeSources"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## patch-non-employee-record
|
||||
This request will patch a non-employee record. There are two contextual uses for this endpoint:
|
||||
1. The user has the role context of `idn:nesr:update`, in which case they
|
||||
@@ -1387,6 +1469,8 @@ update all available fields.
|
||||
2. The user is owner of the source, in this case they can only update the
|
||||
end date.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-non-employee-record)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1425,21 +1509,24 @@ $Id = "ef38f94347e94562b5bb8424a56397d8" # String | Non-employee record id (UUID
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToJsonPatchOperation -Json $JsonPatchOperation
|
||||
Update-V2024NonEmployeeRecord -V2024Id $Id -V2024JsonPatchOperation $Result
|
||||
Update-V2024NonEmployeeRecord -Id $Id -V2024JsonPatchOperation $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Update-V2024NonEmployeeRecord -V2024Id $Id -V2024JsonPatchOperation $JsonPatchOperation
|
||||
# Update-V2024NonEmployeeRecord -Id $Id -V2024JsonPatchOperation $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-V2024NonEmployeeRecord"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## patch-non-employee-schema-attribute
|
||||
This end-point patches a specific schema attribute for a non-employee SourceId.
|
||||
Requires role context of `idn:nesr:update`
|
||||
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-non-employee-schema-attribute)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1480,19 +1567,22 @@ $SourceId = "ef38f94347e94562b5bb8424a56397d8" # String | The Source id
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToJsonPatchOperation -Json $JsonPatchOperation
|
||||
Update-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
Update-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Update-V2024NonEmployeeSchemaAttribute -V2024AttributeId $AttributeId -V2024SourceId $SourceId -V2024JsonPatchOperation $JsonPatchOperation
|
||||
# Update-V2024NonEmployeeSchemaAttribute -AttributeId $AttributeId -SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-V2024NonEmployeeSchemaAttribute"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## patch-non-employee-source
|
||||
patch a non-employee source. (partial update) <br/> Patchable field: **name, description, approvers, accountManagers** Requires role context of `idn:nesr:update`.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/patch-non-employee-source)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1530,19 +1620,22 @@ $SourceId = "e136567de87e4d029e60b3c3c55db56d" # String | Source Id
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToJsonPatchOperation -Json $JsonPatchOperation
|
||||
Update-V2024NonEmployeeSource -V2024SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
Update-V2024NonEmployeeSource -SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Update-V2024NonEmployeeSource -V2024SourceId $SourceId -V2024JsonPatchOperation $JsonPatchOperation
|
||||
# Update-V2024NonEmployeeSource -SourceId $SourceId -V2024JsonPatchOperation $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-V2024NonEmployeeSource"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## reject-non-employee-request
|
||||
This endpoint will reject an approval item request and notify user. The current user must be the requested approver.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/reject-non-employee-request)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1577,16 +1670,17 @@ $NonEmployeeRejectApprovalDecision = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeRejectApprovalDecision -Json $NonEmployeeRejectApprovalDecision
|
||||
Deny-V2024NonEmployeeRequest -V2024Id $Id -V2024NonEmployeeRejectApprovalDecision $Result
|
||||
Deny-V2024NonEmployeeRequest -Id $Id -V2024NonEmployeeRejectApprovalDecision $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Deny-V2024NonEmployeeRequest -V2024Id $Id -V2024NonEmployeeRejectApprovalDecision $NonEmployeeRejectApprovalDecision
|
||||
# Deny-V2024NonEmployeeRequest -Id $Id -V2024NonEmployeeRejectApprovalDecision $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Deny-V2024NonEmployeeRequest"
|
||||
Write-Host $_.ErrorDetails
|
||||
}
|
||||
```
|
||||
[[Back to top]](#)
|
||||
|
||||
## update-non-employee-record
|
||||
This request will update a non-employee record. There are two contextual uses for this endpoint:
|
||||
1. The user has the role context of `idn:nesr:update`, in which case they
|
||||
@@ -1594,6 +1688,8 @@ update all available fields.
|
||||
2. The user is owner of the source, in this case they can only update the
|
||||
end date.
|
||||
|
||||
[API Spec](https://developer.sailpoint.com/docs/api/v2024/update-non-employee-record)
|
||||
|
||||
### Parameters
|
||||
Param Type | Name | Data Type | Required | Description
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
@@ -1640,10 +1736,10 @@ $NonEmployeeRequestBody = @"{
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToNonEmployeeRequestBody -Json $NonEmployeeRequestBody
|
||||
Update-V2024NonEmployeeRecord -V2024Id $Id -V2024NonEmployeeRequestBody $Result
|
||||
Update-V2024NonEmployeeRecord -Id $Id -V2024NonEmployeeRequestBody $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Update-V2024NonEmployeeRecord -V2024Id $Id -V2024NonEmployeeRequestBody $NonEmployeeRequestBody
|
||||
# Update-V2024NonEmployeeRecord -Id $Id -V2024NonEmployeeRequestBody $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-V2024NonEmployeeRecord"
|
||||
Write-Host $_.ErrorDetails
|
||||
|
||||
Reference in New Issue
Block a user