Skip to main content

HumanAccountRequestsAPI

Use these APIs to submit a standalone human account request and to read its status. These APIs are experimental and require the `X-SailPoint-Experimental` header.

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

MethodHTTP requestDescription
create-human-account-request-v1Post /accounts/v1/account-requests/human-account-createSubmit human account create request
get-human-account-request-v1Get /accounts/v1/account-requests/human-account-create/{accountRequestId}Get human account create request

create-human-account-request-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.Experimental = true

Submit human account create request Submit a request for a new account of a HUMAN account subtype, for the caller or for another identity. A successful request is accepted and starts the account-create workflow. Follow it with GET /accounts/v1/account-requests/human-account-create/{accountRequestId}. The tenant account request configuration decides who may submit. A self-request requires allowRequestForSelf. A request for someone else requires allowRequestOnBehalfOfAnyoneByAnyone, or allowRequestOnBehalfOfEmployeeByManager when the caller is that identity's manager. The subtype must be a HUMAN account subtype whose account creation is enabled, and its source must support provisioning. While human account provisioning is disabled, this endpoint returns 404.

API Spec

Path Parameters​

Other Parameters​

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

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to "true"]
humanAccountCreateRequestHumanAccountCreateRequestThe identity, human account subtype, and optional form input for the account to create.

Return type​

HumanAccountCreateResponse

HTTP request headers​

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

Example​

package main

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

func main() {
xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true")
humanaccountcreaterequestJson := []byte(`{
"formId" : "f5dd23fe-3414-42b7-bb1c-869400ad7a10",
"identityId" : "2c91808568c529c60168cca6f90c1313",
"userInput" : {
"department" : "Engineering",
"location" : "Austin"
},
"subtypeId" : "38453251-6be2-5f8f-df93-5ce19e295838"
}`) // HumanAccountCreateRequest | The identity, human account subtype, and optional form input for the account to create.

var humanAccountCreateRequest human_account_requests.HumanAccountCreateRequest
if err := json.Unmarshal(humanaccountcreaterequestJson, &humanAccountCreateRequest); err != nil {
fmt.Println("Error:", err)
return
}


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

[Back to top]

get-human-account-request-v1​

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

configuration = Configuration()
configuration.Experimental = true

Get human account create request Get the status of a human account create request. The caller must be the requester, the identity the account is for, or an admin. An unknown id, or the id of another kind of request, is not found. While human account provisioning is disabled, this endpoint returns 404.

API Spec

Path Parameters​

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
accountRequestIdstringId returned when the human account create request was submitted.

Other Parameters​

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

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to "true"]

Return type​

HumanAccountCreateStatus

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"
)

func main() {
xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true")
accountRequestId := `2d81808474683da6017468693c260196` // string | Id returned when the human account create request was submitted. # string | Id returned when the human account create request was submitted.



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

[Back to top]