Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/05/2024 07:11 AM
Hi,
I would like to set the password policy of the security system using the API. I have tried the below payload to set the password policy but it's throwing error.
Error:
What's the proper way to set the password policy using API?
Solved! Go to Solution.
07/05/2024 07:17 AM
Its seems to be defect please raise support ticket. Internally it should find policy rule object based on password policy name
07/13/2024 11:50 AM
According to support, "policyRule" and "policyRuleServiceAccount" fields to update/set the password policy for accounts and service accounts respectively, are supported from EIC 24.5 onwards.
If anyone needs to set password policy using API for EIC below the supported versions, they can use the following curl sample to achieve it. This is the API that the UI uses to update the security system. You can obtain the cookie from browser storage. Here, id is security system id, externalconnectionid is the connection id and the others are respective password policy id. Update the hostname in the url, origin header and referer header. This is an undocumented API. Whoever wants to use it, use at your own discretion.
curl 'https://partner.saviyntcloud.com/ECM/securitysystems/update' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'accept-language: en-US,en;q=0.9,bn;q=0.8' \
-H 'cache-control: max-age=0' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'cookie: JSESSIONID=102DD14252B60AC435B06ABCDEFABC09; INGRESSCOOKIE=1720676890.367.195.76535|0f4091facaf04271d9e9e5a60a3d3e8f; token_type=Bearer; user_name=USERNAE; first_name=FIRSTNAME; userKey=123; access_token=eyJhbGciOiJIUzI1NiJ9.eyJwcmluY2lwYWwiOiJINHNJQUFBQUFBQUFBSlZTUDBcL2JRQlJcL0RrR3Bpa1NoRXBVWVlDbHNsU08xWXpxVXYxVXJOeURTTEZScWRiRWY1dUI4Wis3T2tDeFZKam93Z0ZxUWtQZ0tmQk5ZK0FDSURsMlpXWGxuQWs2N29ONWt2XC92NTkrXC81OUJvR2pZWTNzV1pjR0Q4VldjeWxiMUxOWld3d3pEUzNIVDh6cUNPME9lSjlEbXpTQk82T1Z3SXZnQktQTER3UE50ZzJxd29tNCtwU2F3TkRXMnRyZUsxMDNHTmMweXpCSGFVM1wvUWZ1VUduOFM2Q2c5dDZWb0xJS295d01WU1p0WGNtRmRzbzFScXN3VXN3Q0ZXNjYwVmhJTnlndFo4TDBReXNvV1V0Z0ZNQVF5K3k2SWxXT3hzS3pPN09aNWFMYVFGc0w0RW5LakNGM1wveVJwV0dmZDNUdWJraEpzd1hjb3QxT1BEblUzN2FDKzRcL0hu95VVJGZjQwNmMrTHNUUHlcLzJUN3JORWdCMTh1cnhiNHI1K0N4MHo3N2VUT1pGZTZHRkYzM1dDMWl0blpLYjBZTDVzMGFuZkhtOFwvT3ZvK3NlWEFWSjJpTVhcLzM4ZlVUSys1enB4S1VxYVpWWDA3SXRxZHNuc204dG5IeWUrMzBQRWJQRWtGMGg4bExVWVBFZ1V4eFMxckplNzd0dkIwWlNsWStEWXpcLytsRDNiMVdyR2JyQ1pPa081ekhkdnZ5QTBYYjJ2dHpjTDdcLzhvbzRQc0xnTmhNWlV1c2pCYWllSlMzVXU2ZEhFME9IdlwvZnlETDNcLytlMHRDJpc3MiOiJpYW1jb25jZXB0cy1wYXJ0bmVyLnNhdml5bnRjbG91ZC5jb20iLCJzdWIiOiJ0cmFobWFuIiwiZXhwIjoxNzIwODI0NjI1LCJpYXQiOjE3MjA4MjEwMjUsInJvbGVzIjpbIlJPTEVfQURNSU4iXX0.6P_Q0HOhomcPzqHu0BSxrJMSR6apzAiaCXmUzgH31CU; CCSRF-TOKEN=1468dc10-0689-4eae-b1f5-d2b3546fb728' \
-H 'origin: https://partner.saviyntcloud.com' \
-H 'priority: u=0, i' \
-H 'referer: https://partner.saviyntcloud.com/' \
-H 'sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Microsoft Edge";v="126"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'sec-fetch-dest: document' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-user: ?1' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0' \
--data-raw 'id=54&externalconnectionk=48&policyRuleid=1&policyRuleServiceAccntid=1'