Skip to main content

Import Identity Profiles

POST 

https://sailpoint.api.identitynow.com/v2024/identity-profiles/import

This imports previously exported identity profiles.

Request

Responses

The result of importing Identity Profiles.

Authorization: oauth2

type: Personal Access Token
scopes: idn:identity-profile:manage
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v2024/identity-profiles/import"
method := "POST"

payload := strings.NewReader(`[
{
"version": 1,
"self": {
"type": "SOURCE",
"id": "2c9180835d191a86015d28455b4b232a",
"name": "HR Active Directory"
},
"object": {
"name": "aName",
"description": "My custom flat file profile",
"owner": {
"type": "IDENTITY",
"id": "2c9180835d191a86015d28455b4b232a",
"name": "William Wilson"
},
"priority": 10,
"authoritativeSource": {
"type": "SOURCE",
"id": "2c9180835d191a86015d28455b4b232a",
"name": "HR Active Directory"
},
"identityRefreshRequired": true,
"identityCount": 8,
"identityAttributeConfig": {
"enabled": true,
"attributeTransforms": [
{
"identityAttributeName": "email",
"transformDefinition": {
"type": "accountAttribute",
"attributes": {
"attributeName": "e-mail",
"sourceName": "MySource",
"sourceId": "2c9180877a826e68017a8c0b03da1a53"
}
}
}
]
},
"identityExceptionReportReference": {
"taskResultId": "2b838de9-db9b-abcf-e646-d4f274ad4238",
"reportName": "My annual report"
},
"hasTimeBasedAttr": true
}
}
]`)

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/v2024
Auth
Body required
[
  {
    "version": 1,
    "self": {
      "type": "SOURCE",
      "id": "2c9180835d191a86015d28455b4b232a",
      "name": "HR Active Directory"
    },
    "object": {
      "name": "aName",
      "description": "My custom flat file profile",
      "owner": {
        "type": "IDENTITY",
        "id": "2c9180835d191a86015d28455b4b232a",
        "name": "William Wilson"
      },
      "priority": 10,
      "authoritativeSource": {
        "type": "SOURCE",
        "id": "2c9180835d191a86015d28455b4b232a",
        "name": "HR Active Directory"
      },
      "identityRefreshRequired": true,
      "identityCount": 8,
      "identityAttributeConfig": {
        "enabled": true,
        "attributeTransforms": [
          {
            "identityAttributeName": "email",
            "transformDefinition": {
              "type": "accountAttribute",
              "attributes": {
                "attributeName": "e-mail",
                "sourceName": "MySource",
                "sourceId": "2c9180877a826e68017a8c0b03da1a53"
              }
            }
          }
        ]
      },
      "identityExceptionReportReference": {
        "taskResultId": "2b838de9-db9b-abcf-e646-d4f274ad4238",
        "reportName": "My annual report"
      },
      "hasTimeBasedAttr": true
    }
  }
]
ResponseClear

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