Hi Team
Using sail search template we can list and use available templates which accepts input.
Did anyone try creating custom search templates which can accept inputs and respond using SailPoint CLI Search Template | SailPoint Developer Community ?
Yes, I have created new templates that are can prompt for input. The process is pretty straight forward.
From the CLI, set the path to your custom file:
sail set searchTemplates "path/to/search/template/file"
Edit the file specified above. Add a section like:
[
{
"name": "New Users",
"description": "New Users created in a variable number of days - Accepts input"
"variables": [{"name": "days", "prompt": "Days before today"}],
"searchQuery": {
"indicies": ["identities"],
"queryType": null,
"queryVersion": null,
"query": {
"query": "(created:[now-{{days}}d to now])"
},
"sort": [],
"searchAfter": []
}
}
]