Skip to main content

Is Segmentation enabled by Identity

GET 

https://sailpoint.api.identitynow.com/v2025/data-segments/user-enabled/:identityId

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.

This API returns whether or not segmentation is enabled for the identity.

Request

Path Parameters

    identityId stringrequired

    The identity ID to retrieve if segmentation is enabled for the identity.

    Example: ef38f943-47e9-4562-b5bb-8424a56397d8

Header Parameters

    X-SailPoint-Experimental stringrequired

    Use this header to enable this experimental API.

    Default value: true
    Example: true

Responses

Returns if segmentation is enabled for a specified User

Schema
    booleanboolean

Authorization: oauth2

type: Personal Access Token
scopes: idn:data-segments:read
user levels: ORG_ADMIN

type: Client Credentials
scopes: idn:data-segments:read
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/v2025/data-segments/user-enabled/:identityId"
method := "GET"

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

if err != nil {
fmt.Println(err)
return
}
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
Parameters
— pathrequired
— headerrequired
ResponseClear

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