Skip to content

Commit

Permalink
Automated commit 'ISCARP-15679 :- Added API Doc for source policy hol…
Browse files Browse the repository at this point in the history
…ders (#1937)

* Added changes for sources policy holders doc

* Added user levels

* Removed get api doc

* Reverted the change

* Minor changes

* Fixed build errors' by github action: 12750871926
  • Loading branch information
tyler-mairose-sp committed Jan 13, 2025
1 parent f2607aa commit e4d7aa0
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 0 deletions.
2 changes: 2 additions & 0 deletions idn/sailpoint-api.v2024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,8 @@ paths:
$ref: ./v3/paths/source-upload-connector-file.yaml
/sources/{id}/correlation-config:
$ref: ./v2024/paths/correlation-config.yaml
/sources/{sourceId}/password-policies:
$ref: ./v2024/paths/sources-policy-holders.yaml
/tagged-objects:
$ref: ./v3/paths/tagged-objects.yaml
/tagged-objects/{type}:
Expand Down
49 changes: 49 additions & 0 deletions idn/v2024/paths/sources-policy-holders.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
patch:
operationId: updatePasswordPolicyHolders
x-sailpoint-userLevels:
- ORG_ADMIN
- SOURCE_ADMIN
- SOURCE_SUBADMIN
- ROLE_SUBADMIN
tags:
- Sources
summary: Update Password Policy
description: |
This API can be used to set up or update Password Policy in IdentityNow for the specified Source.
Source must support PASSWORD feature.
parameters:
- in: path
name: sourceId
schema:
type: string
required: true
description: The Source id
example: 8c190e6787aa4ed9a90bd9d5344523fb
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/PasswordPolicyHoldersDto.yaml'
responses:
'200':
description: >-
Updated Password Policies
content:
application/json:
schema:
$ref: '../schemas/PasswordPolicyHoldersDto.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'404':
$ref: '../../v3/responses/404.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
security:
- userAuth: [ idn:sources:update ]
51 changes: 51 additions & 0 deletions idn/v2024/schemas/PasswordPolicyHoldersDto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
type: array
description: List of PasswordPolicyHoldersDto
items:
type: object
properties:
policyId:
type: string
description: The password policy Id.
example: 2c91808e7d976f3b017d9f5ceae440c8
policyName:
type: string
description: The name of the password policy.
example: PasswordPolicy Example
selectors:
type: object
$ref: '../schemas/PasswordPolicyHoldersDtoAttributes.yaml'
example:
"identityAttr": [
{
"name": "displayName",
"value": "Robert"
},
{
"name": "lastname",
"value": "Juice"
}
]
example:
[
{
"policyId": "2c91808e7d976f3b017d9f5ceae440c8",
"policyName": "Default",
"selectors": null
},
{
"policyId": "2c91808e7d976f3b017d9f5ceae440c8",
"policyName": "PasswordPolicy Example",
"selectors": {
"identityAttr": [
{
"name": "displayName",
"value": "Robert"
},
{
"name": "lastname",
"value": "Case"
}
]
}
}
]
16 changes: 16 additions & 0 deletions idn/v2024/schemas/PasswordPolicyHoldersDtoAttributes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: object
properties:
identityAttr:
description: Attributes of PasswordPolicyHoldersDto
type: array
items:
type: object
properties:
name:
description: Attribute's name
type: string
example: Country
value:
description: Attribute's value
type: string
example: Canada

0 comments on commit e4d7aa0

Please sign in to comment.