---
id: get-advanced-search
sidebar_label: Get saved advanced search queries
hide_title: true
hide_table_of_contents: true
api: {"operationId":"getAdvancedSearch","description":"Get saved advanced search queries","tags":["Advanced Search"],"responses":{"200":{"description":"Expected response to a valid request","content":{"application/json":{"schema":{"type":"object","properties":{"advanced_search":{"type":"array","items":{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"the uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"label":{"description":"the label","type":"string","example":"mylabel"},"condition_rules_attributes":{"description":"The condition rules attributes","type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"The uuid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["ProfileTypeRule"],"example":"ProfileTypeRule"},"comparison_operator":{"description":"The comparison operator","type":"string","enum":["==","!="],"example":"=="},"value":{"description":"The value","type":"string","format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"}}},{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"The uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["ProfileStatusRule"],"example":"ProfileStatusRule"},"comparison_operator":{"description":"The comparison operator","type":"string","enum":["==","!="],"example":"=="},"value":{"description":"The value","type":"string","enum":["Active","Inactive","Leave of absence","Terminated"],"example":"Active"}}},{"type":"object","properties":{"id":{"description":"the id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"the uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["ProfileAttributeRule"],"example":"ProfileAttributeRule"},"condition_object_type":{"description":"The condition_object_type","type":"string","required":true,"enum":["TextFieldAttribute","TextAreaAttribute"],"example":"TextAreaAttribute"},"condition_object_id":{"description":"The condition_object_id","type":"string","required":true,"format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"comparison_operator":{"description":"The operator to use for comparison","type":"string","required":true,"enum":["==","!=",">","<","start_with?","end_with?","include?"],"example":"=="},"value":{"description":"The value","type":"string","required":true,"example":"Some value"}}},{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"The uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["ProfileAttributeRule"],"example":"ProfileAttributeRule"},"condition_object_type":{"description":"The condition object type","type":"string","required":true,"enum":["DateAttribute"],"example":"DateAttribute"},"condition_object_id":{"description":"The condition object id","type":"string","format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"secondary_attribute_type":{"description":"The secondary_attribute_type","type":"string","enum":["DateAttribute"],"example":"DateAttribute"},"secondary_attribute_id":{"description":"The secondary_attribute_id","type":"string","format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"comparison_operator":{"description":"The operator to use for comparison","type":"string","enum":[">","<","after","before"],"example":"<"},"value":{"description":"The value to use for comparison","type":"string","required":true,"enum":["Today","<uid>"],"example":"Today"},"secondary_value":{"description":"The secondary value","type":"string","enum":["after","before"],"example":"after"},"tertiary_value":{"description":"the tertiary_value","type":"string","example":30}}},{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"The uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["ProfileAttributeRule"],"example":"ProfileAttributeRule"},"condition_object_type":{"description":"The condition_object_type","type":"string","required":true,"enum":["ProfileSelectAttribute","ProfileSearchAttribute","OwnerSelectAttribute","OwnerSearchAttribute","ContributorSelectAttribute","ContributorSearchAttribute"],"example":"OwnerSearchAttribute"},"condition_object_id":{"description":"The condition_object_id","type":"string","required":true,"format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"comparison_operator":{"description":"The comparison_operator","type":"string","required":true,"enum":["include?","exclude?"],"example":"include?"},"value":{"description":"The value","type":"string","required":true,"format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"}}},{"type":"object","properties":{"id":{"description":"The id","type":"string","format":"uuid","readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"uid":{"description":"the uid","type":"string","minLength":32,"maxLength":32,"readOnly":true,"example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"type":{"description":"The type","type":"string","required":true,"enum":["RiskRule"],"example":"RiskRule"},"comparison_operator":{"description":"The operator to use for comparison","type":"string","enum":["==",">","<"],"example":"=="},"value":{"description":"Id of the Risk Level being compared against","type":"string","summary":"id of the Risk Level being compared against","required":true,"format":"uuid","example":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},"secondary_value":{"description":"The secondary value","type":"string","required":true,"enum":["OverallRisk"],"example":"OverallRisk"}}}]},"example":[{"type":"ProfileTypeRule","comparison_operator":"==","value":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"},{"type":"ProfileStatusRule","id":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e","uid":"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e","comparison_operator":"==","value":"Active"}]}}}}}}}}}},"method":"get","path":"/advanced_search","info":{"version":"1.0.0","title":"NERM Lifecycle API","description":"The Lifecycle API can be used to access and modify various resources in your environment.","license":{"name":"MIT"}},"postman":{"name":"Get saved advanced search queries","description":{"content":"Get saved advanced search queries","type":"text/plain"},"url":{"path":["advanced_search"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET"}}
sidebar_class_name: "get api-method"
info_path: nerm/api/nerm-lifecycle-api
custom_edit_url: "https://github.com/sailpoint-oss/developer.sailpoint.com/issues/new?assignees=&labels=&template=bug-report.md&title=%5BBug%5D+Your+Bug+Report+Here Requesting changes to 'Get saved advanced search queries' (get-advanced-search)"
---

import ApiTabs from "@theme/ApiTabs";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import TabItem from "@theme/TabItem";

## Get saved advanced search queries



Get saved advanced search queries

<div><ApiTabs><TabItem label={"200"} value={"200"}><div>

Expected response to a valid request

</div><div><MimeTabs schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs><TabItem label={"Schema"} value={"Schema"}><details style={{}} data-collapsed={false} open={true}><summary style={{"textAlign":"left"}}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}}><summary style={{}}><strong>advanced_search</strong><span style={{"opacity":"0.6"}}> object[]</span></summary><div style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"the uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"label"} required={false} deprecated={undefined} schemaDescription={"the label"} schemaName={"string"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}}><summary style={{}}><strong>condition_rules_attributes</strong><span style={{"opacity":"0.6"}}> object[]</span></summary><div style={{"marginLeft":"1rem"}}><div style={{"marginTop":".5rem","marginBottom":".5rem"}}>

The condition rules attributes

</div><div><div><span className={"badge badge--info"}>anyOf</span><SchemaTabs><TabItem label={"MOD1"} value={"0-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"The uuid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileTypeRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The comparison operator"} schemaName={"string"} qualifierMessage={"**Possible values:** [`==`, `!=`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"The value"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem></TabItem><TabItem label={"MOD2"} value={"1-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"The uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileStatusRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The comparison operator"} schemaName={"string"} qualifierMessage={"**Possible values:** [`==`, `!=`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"The value"} schemaName={"string"} qualifierMessage={"**Possible values:** [`Active`, `Inactive`, `Leave of absence`, `Terminated`]"} defaultValue={undefined}></SchemaItem></TabItem><TabItem label={"MOD3"} value={"2-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"the id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"the uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileAttributeRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_type"} required={false} deprecated={undefined} schemaDescription={"The condition_object_type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`TextFieldAttribute`, `TextAreaAttribute`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_id"} required={false} deprecated={undefined} schemaDescription={"The condition_object_id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The operator to use for comparison"} schemaName={"string"} qualifierMessage={"**Possible values:** [`==`, `!=`, `>`, `<`, `start_with?`, `end_with?`, `include?`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"The value"} schemaName={"string"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem></TabItem><TabItem label={"MOD4"} value={"3-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"The uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileAttributeRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_type"} required={false} deprecated={undefined} schemaDescription={"The condition object type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`DateAttribute`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_id"} required={false} deprecated={undefined} schemaDescription={"The condition object id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"secondary_attribute_type"} required={false} deprecated={undefined} schemaDescription={"The secondary_attribute_type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`DateAttribute`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"secondary_attribute_id"} required={false} deprecated={undefined} schemaDescription={"The secondary_attribute_id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The operator to use for comparison"} schemaName={"string"} qualifierMessage={"**Possible values:** [`>`, `<`, `after`, `before`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"The value to use for comparison"} schemaName={"string"} qualifierMessage={"**Possible values:** [`Today`, `<uid>`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"secondary_value"} required={false} deprecated={undefined} schemaDescription={"The secondary value"} schemaName={"string"} qualifierMessage={"**Possible values:** [`after`, `before`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"tertiary_value"} required={false} deprecated={undefined} schemaDescription={"the tertiary_value"} schemaName={"string"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem></TabItem><TabItem label={"MOD5"} value={"4-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"The uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileAttributeRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_type"} required={false} deprecated={undefined} schemaDescription={"The condition_object_type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`ProfileSelectAttribute`, `ProfileSearchAttribute`, `OwnerSelectAttribute`, `OwnerSearchAttribute`, `ContributorSelectAttribute`, `ContributorSearchAttribute`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"condition_object_id"} required={false} deprecated={undefined} schemaDescription={"The condition_object_id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The comparison_operator"} schemaName={"string"} qualifierMessage={"**Possible values:** [`include?`, `exclude?`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"The value"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem></TabItem><TabItem label={"MOD6"} value={"5-item-properties"}><SchemaItem collapsible={false} name={"id"} required={false} deprecated={undefined} schemaDescription={"The id"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"uid"} required={false} deprecated={undefined} schemaDescription={"the uid"} schemaName={"string"} qualifierMessage={"**Possible values:** `>= 32 characters` and `<= 32 characters`"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={false} deprecated={undefined} schemaDescription={"The type"} schemaName={"string"} qualifierMessage={"**Possible values:** [`RiskRule`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"comparison_operator"} required={false} deprecated={undefined} schemaDescription={"The operator to use for comparison"} schemaName={"string"} qualifierMessage={"**Possible values:** [`==`, `>`, `<`]"} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"value"} required={false} deprecated={undefined} schemaDescription={"Id of the Risk Level being compared against"} schemaName={"uuid"} qualifierMessage={undefined} defaultValue={undefined}></SchemaItem><SchemaItem collapsible={false} name={"secondary_value"} required={false} deprecated={undefined} schemaDescription={"The secondary value"} schemaName={"string"} qualifierMessage={"**Possible values:** [`OverallRisk`]"} defaultValue={undefined}></SchemaItem></TabItem></SchemaTabs></div></div></div></details></SchemaItem></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"advanced_search\": [\n    {\n      \"id\": \"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e\",\n      \"uid\": \"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e\",\n      \"label\": \"mylabel\",\n      \"condition_rules_attributes\": [\n        {\n          \"type\": \"ProfileTypeRule\",\n          \"comparison_operator\": \"==\",\n          \"value\": \"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e\"\n        },\n        {\n          \"type\": \"ProfileStatusRule\",\n          \"id\": \"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e\",\n          \"uid\": \"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e\",\n          \"comparison_operator\": \"==\",\n          \"value\": \"Active\"\n        }\n      ]\n    }\n  ]\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div>