Security Compliance
How to create and use SearchField within ARM template
This KB article describes how to write SearchField query correctly within ARM template
First published date
Last published date
Overview
Product section
Resolution
To use SearchField correctly when creating users or when SearchField is needed, please insert the following within the ARM template:
- Note: Replace the attribute as per your requirement. In this example, we are using the attribute 'manager' and making it mandatory (IsRequired) during user creation.
{
"Name": "manager",
"Definition": {
"Type": "SearchField",
"Label": "['en-us:Manager', 'de-de:Vorgesetzter', 'fr-fr:Manager']",
"Description": "",
"DefaultValue": null,
"IsRequired": true,
"IsEnabled": true,
"isHidden": false,
"isHiddenFromRequester": false,
"ObjectType": "Account",
"Filters": {
"ActiveDirectory":"PropertyValues{TypeId = -100 AND Value='user'}"
}
}
},
-
This Template field will work the same also without TypeID property, so this can be removed if needed.