Skip to main content

Create Password Org Config

POST 

https://sailpoint.api.identitynow.com/v2025/password-org-config

This API creates the password org config. Unspecified fields will use default value. To be able to use the custom password instructions, you must set the customInstructionsEnabled field to "true". Requires ORG_ADMIN, API role or authorization scope of 'idn:password-org-config:write'

Request

Bodyrequired

    customInstructionsEnabledboolean

    Indicator whether custom password instructions feature is enabled. The default value is false.

    Default value: false
    Example: true
    digitTokenEnabledboolean

    Indicator whether "digit token" feature is enabled. The default value is false.

    Default value: false
    Example: true
    digitTokenDurationMinutesint32

    The duration of "digit token" in minutes. The default value is 5.

    Possible values: >= 1 and <= 60

    Default value: 5
    Example: 10
    digitTokenLengthint32

    The length of "digit token". The default value is 6.

    Possible values: >= 6 and <= 18

    Default value: 6
    Example: 9

Responses

Reference to the password org config.

Schema
    customInstructionsEnabledboolean

    Indicator whether custom password instructions feature is enabled. The default value is false.

    Default value: false
    Example: true
    digitTokenEnabledboolean

    Indicator whether "digit token" feature is enabled. The default value is false.

    Default value: false
    Example: true
    digitTokenDurationMinutesint32

    The duration of "digit token" in minutes. The default value is 5.

    Possible values: >= 1 and <= 60

    Default value: 5
    Example: 10
    digitTokenLengthint32

    The length of "digit token". The default value is 6.

    Possible values: >= 6 and <= 18

    Default value: 6
    Example: 9

Authorization: oauth2

type: Personal Access Token
scopes: idn:password-org-config:write
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sailpoint.api.identitynow.com/v2025/password-org-config"
method := "POST"

payload := strings.NewReader(`{
"customInstructionsEnabled": true,
"digitTokenEnabled": true,
"digitTokenDurationMinutes": 10,
"digitTokenLength": 9
}`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/v2025
Auth
Body required
{
  "customInstructionsEnabled": true,
  "digitTokenEnabled": true,
  "digitTokenDurationMinutes": 10,
  "digitTokenLength": 9
}
ResponseClear

Click the Send API Request button above and see the response here!