Skip to main content

PasswordConfigurationAPI

Use this API to implement organization password configuration functionality. With this functionality in place, organization administrators can create organization-specific password configurations.

These configurations include details like custom password instructions, as well as digit token length and duration.

Refer to Configuring User Authentication for Password Resets for more information about organization password configuration functionality.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
create-password-org-config-v1Post /password-org-config/v1Create password org config
get-password-org-config-v1Get /password-org-config/v1Get password org config
put-password-org-config-v1Put /password-org-config/v1Update password org config

create-password-org-config-v1

Create 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'

API Spec

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreatePasswordOrgConfigV1Request struct via the builder pattern

NameTypeDescriptionNotes
passwordorgconfigPasswordorgconfig

Return type

Passwordorgconfig

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

package main

import (
"context"
"fmt"
"os"
"encoding/json"
v1 "github.com/sailpoint-oss/golang-sdk/v3/password_configuration"
sailpoint "github.com/sailpoint-oss/golang-sdk/v3/password_configuration"
)

func main() {
passwordorgconfig := []byte(`{"customInstructionsEnabled":true,"digitTokenEnabled":true,"digitTokenDurationMinutes":12,"digitTokenLength":9}`) // Passwordorgconfig |

var passwordorgconfig v1.Passwordorgconfig
if err := json.Unmarshal(passwordorgconfig, &passwordorgconfig); err != nil {
fmt.Println("Error:", err)
return
}


configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfigV1(context.Background()).Passwordorgconfig(passwordorgconfig).Execute()
//resp, r, err := apiClient.PasswordConfigurationAPI.CreatePasswordOrgConfigV1(context.Background()).Passwordorgconfig(passwordorgconfig).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfigV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreatePasswordOrgConfigV1`: Passwordorgconfig
fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfigV1`: %v\n", resp)
}

[Back to top]

get-password-org-config-v1

Get password org config This API returns the password org config . Requires ORG_ADMIN, API role or authorization scope of 'idn:password-org-config:read'

API Spec

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetPasswordOrgConfigV1Request struct via the builder pattern

Return type

Passwordorgconfig

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

package main

import (
"context"
"fmt"
"os"


sailpoint "github.com/sailpoint-oss/golang-sdk/v3/password_configuration"
)

func main() {



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfigV1(context.Background()).Execute()
//resp, r, err := apiClient.PasswordConfigurationAPI.GetPasswordOrgConfigV1(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfigV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPasswordOrgConfigV1`: Passwordorgconfig
fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfigV1`: %v\n", resp)
}

[Back to top]

put-password-org-config-v1

Update password org config This API updates the password org config for specified fields. Other fields will keep original value. You must set the customInstructionsEnabled field to "true" to be able to use custom password instructions. Requires ORG_ADMIN, API role or authorization scope of 'idn:password-org-config:write'

API Spec

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPutPasswordOrgConfigV1Request struct via the builder pattern

NameTypeDescriptionNotes
passwordorgconfigPasswordorgconfig

Return type

Passwordorgconfig

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

package main

import (
"context"
"fmt"
"os"
"encoding/json"
v1 "github.com/sailpoint-oss/golang-sdk/v3/password_configuration"
sailpoint "github.com/sailpoint-oss/golang-sdk/v3/password_configuration"
)

func main() {
passwordorgconfig := []byte(`{"digitTokenEnabled":true,"digitTokenDurationMinutes":12}`) // Passwordorgconfig |

var passwordorgconfig v1.Passwordorgconfig
if err := json.Unmarshal(passwordorgconfig, &passwordorgconfig); err != nil {
fmt.Println("Error:", err)
return
}


configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfigV1(context.Background()).Passwordorgconfig(passwordorgconfig).Execute()
//resp, r, err := apiClient.PasswordConfigurationAPI.PutPasswordOrgConfigV1(context.Background()).Passwordorgconfig(passwordorgconfig).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfigV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutPasswordOrgConfigV1`: Passwordorgconfig
fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfigV1`: %v\n", resp)
}

[Back to top]