Skip to main content

List role assignments

GET 

https://sailpoint.api.identitynow.com/beta/identities/:identityId/role-assignments

This returns either a list of Role Assignments when querying with either a Role Id or Role Name, or a list of Role Assignment References if querying with only identity Id.

Request

Path Parameters

    identityId stringrequired

    Identity Id to get the role assignments for

    Example: ef38f94347e94562b5bb8424a56397d8

Query Parameters

    roleId string

    Role Id to filter the role assignments with

    Example: e7697a1e96d04db1ac7b0f4544915d2c
    roleName string

    Role name to filter the role assignments with

    Example: Engineer

Responses

A role assignment object

Schema
  • Array [
  • anyOf
    idstring

    Assignment Id

    Example: 1cbb0705b38c4226b1334eadd8874086
    role object
    idstring

    the application ID

    Example: ff8081814d977c21014da056804a0af3
    namestring

    the application name

    Example: Github
  • ]

Authorization: oauth2

type: Personal Access Token
scopes: idn:identity:read
package main

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

func main() {

url := "https://sailpoint.api.identitynow.com/beta/identities/:identityId/role-assignments"
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/beta
Auth
Parameters
— pathrequired
— query
— query
ResponseClear

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