Skip to main content

MachineAccountRecommendationService

Use this API to review machine account discovery results. Machine account discovery analyzes accounts and recommends whether each account belongs to a machine rather than a person.

You can get the recommendation for an account, including the reasons behind it, and you can list the reasons that machine account discovery reports, with a readable message for each reason.

Every method returns an Observable. All request paths are relative to the baseUrl you pass to provideSailPoint().

MethodHTTP requestDescription
get-machine-account-recommendation-v1GET /accounts/v1/{id}/recommendationGet machine account recommendation
list-machine-account-discovery-reasons-v1GET /ai-recommendations/v1/reasons/machine-account-discoveryList machine account discovery reasons

get-machine-account-recommendation-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.

Get machine account recommendation This API returns the machine account discovery recommendation for an account. The recommendation states whether the account is likely a machine account and lists the reasons that contributed to it.

When no recommendation exists for the account, this API returns 200 with an empty response body.

When machine account discovery is not enabled for the tenant, this API returns 404.

API Spec

Parameters​

The service takes one object that holds every parameter. Its type is GetMachineAccountRecommendationV1RequestParams.

NameTypeDescriptionNotes
idstringAccount ID.[default to undefined]
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']

Return type​

Observable<MachineAccountRecommendation>

HTTP request headers​

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

Example​

import { Component, inject } from '@angular/core';
import { MachineAccountRecommendationService } from '@sailpoint/angular-sdk/machine_account_recommendation';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineAccountRecommendationService);

getMachineAccountRecommendationV1(): void {
const id: string = ; // Account ID.
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
this.api.getMachineAccountRecommendationV1({ id: id }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]

list-machine-account-discovery-reasons-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.

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.

List machine account discovery reasons This API returns the reasons that machine account discovery can report for a recommendation. Each reason has an ID and a readable message. Use this list to show a message for each reason in a machine account recommendation.

Messages are localized. Send the Accept-Language header to choose a language. When the requested language is not available, messages are returned in the default language.

The reasons are returned in the order defined by the catalog. When the catalog does not define an order, the reasons are sorted by ID.

When machine account discovery is not enabled for the tenant, this API returns 404.

API Spec

Parameters​

The service takes one object that holds every parameter. Its type is ListMachineAccountDiscoveryReasonsV1RequestParams.

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[optional] [default to 'true']
acceptLanguagestringPreferred language for the reason messages.[optional] [default to 'en']

Return type​

Observable<Array<MachineAccountDiscoveryReason>>

HTTP request headers​

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

Example​

import { Component, inject } from '@angular/core';
import { MachineAccountRecommendationService } from '@sailpoint/angular-sdk/machine_account_recommendation';

@Component({ selector: 'app-example', template: '' })
export class ExampleComponent {
private readonly api = inject(MachineAccountRecommendationService);

listMachineAccountDiscoveryReasonsV1(): void {
const xSailPointExperimental: string = ; // Use this header to enable this experimental API. (optional)
const acceptLanguage: string = ; // Preferred language for the reason messages. (optional)
this.api.listMachineAccountDiscoveryReasonsV1({ }).subscribe({
next: (result) => console.log(result),
error: (error) => console.error(error),
});
}
}

[Back to top]