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

2/4/2020 11:45 AM

Last published date

6/27/2025 10:57 AM

Overview

Within ARM, you can create templates, which can help with the account creation and much more. Sometimes users might want to use SearchField within the template, which they can use the search and find managers and much more within the Application when creating the user. Although it possible that if used incorrectly, search field won't work and won't display any results. 

Product section

Access Rights Manager

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.