mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
Update PowerShell SDK docs: 17132181964
This commit is contained in:
@@ -14714,12 +14714,10 @@
|
||||
"identityId" : "2c91808568c529c60168cca6f90c1313",
|
||||
"accessRefs" : [ {
|
||||
"type" : "ENTITLEMENT",
|
||||
"id" : "2c918087682f9a86016839c050861ab1",
|
||||
"name" : "CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local"
|
||||
"id" : "2c918087682f9a86016839c050861ab1"
|
||||
}, {
|
||||
"type" : "ENTITLEMENT",
|
||||
"id" : "2c918087682f9a86016839c0509c1ab2",
|
||||
"name" : "CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local"
|
||||
"id" : "2c918087682f9a86016839c0509c1ab2"
|
||||
} ]
|
||||
}
|
||||
"@
|
||||
@@ -14742,18 +14740,27 @@
|
||||
- lang: PowerShell
|
||||
label: SDK_tools/sdk/powershell/v2025/methods/sod-violations#start-violation-check
|
||||
source: |
|
||||
$IdentityWithNewAccess1 = @"
|
||||
{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}
|
||||
$IdentityWithNewAccess = @"
|
||||
{
|
||||
"identityId" : "2c91808568c529c60168cca6f90c1313",
|
||||
"accessRefs" : [ {
|
||||
"type" : "ENTITLEMENT",
|
||||
"id" : "2c918087682f9a86016839c050861ab1"
|
||||
}, {
|
||||
"type" : "ENTITLEMENT",
|
||||
"id" : "2c918087682f9a86016839c0509c1ab2"
|
||||
} ]
|
||||
}
|
||||
"@
|
||||
|
||||
# Check sod violations
|
||||
|
||||
try {
|
||||
$Result = ConvertFrom-JsonToIdentityWithNewAccess1 -Json $IdentityWithNewAccess1
|
||||
Start-V2025ViolationCheck -IdentityWithNewAccess1 $Result
|
||||
$Result = ConvertFrom-JsonToIdentityWithNewAccess -Json $IdentityWithNewAccess
|
||||
Start-V2025ViolationCheck -IdentityWithNewAccess $Result
|
||||
|
||||
# Below is a request that includes all optional parameters
|
||||
# Start-V2025ViolationCheck -IdentityWithNewAccess1 $Result
|
||||
# Start-V2025ViolationCheck -IdentityWithNewAccess $Result
|
||||
} catch {
|
||||
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Start-V2025ViolationCheck"
|
||||
Write-Host $_.ErrorDetails
|
||||
|
||||
Reference in New Issue
Block a user