This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Searchfield not working in Web Client

We have a defined a Searchfield in the user Template to select the manager.

{
"Name": "manager",
"Definition": {
"Type": "SearchField",
"Label": "Manager",
"ObjectType": "Account",
"IsEnabled": true,
"IsObjectSearchable": true,
"Filters": {
"ActiveDirectory": "(Status & 0) = 0"
}
}
},

In the FatClient this field is displayed correctly.

However in the Web Client this Template generates an error.

Is there any way to get this to work in Web Client.

Is there any alternative field that searches through the Active Directory?

Thank you for your help!

  • Hi lmu,

    the searchfield is currently not supported in the web interface. An alternative you can use is the AccountSearchTextField, it requires an additional attribute but i have explained the setup in this answer previously: thwack.solarwinds.com/.../184870

  • Hi paul

    Thanks a lot for your answer.

    I will have a look at the AccountSearchTextField and try it with that

  • Dear Paul

    I tried it out with the AccountSearchTextfield but unfortunately I didn't figure out how it works.

     This is the part of the Template I added:

    As an attachment I added the whole JSON Template.

    What am I doing wrong?

    Thanks a lot for your help

    [
      {
        "Version": 1,
        "TemplateType": "CreateNewUser",
        "Id": "851e79d0-79e3-4a78-90ea-d2d28a83cab6",
        "DisplayName": "Test Template LMU",
        "Description": "Test Template LMU",
        "FullQualifiedDomainName": "dg.test",
        "OrganizationalUnit": {
          "Definition": {
            "Type": "FixedValue",
            "Label": "['en-us:Organisational unit (OU)','de-de:Organisationseinheit (OU)','fr-fr:Unité organisationnelle']",
            "Value": "OU=Internal,OU=Users,OU=Lab,DC=dg,DC=test",
            "DisplayValue": "Internal"
          }
        },
        "LookupTables": [
    	
    	],
        "MemberOf": {
          "IsHidden": false,
          "IsHiddenFromRequester": false,
          "Accounts": [
            "sid:///ad/S-1-5-32-545"
          ]
        },
        "ScriptOptions": {
          "IsHidden": false,
          "IsHiddenFromRequester": false,
          "IsScriptEnabledDefault": false,
          "Path": "",
          "CommandLineParameters": "",
          "DisplayName": ""
        },
        "LdapAttributes": [
          {
            "Name": "samaccountname",
            "Definition": {
              "Type": "TextField",
              "Label": "['en-us:SAM account name', 'de-de:SAM-Account-Name', 'fr-fr:SAM nom de compte']",
              "Description": "",
              "DefaultValue": null,
              "IsRequired": true,
              "IsEnabled": true,
              "isHidden": false,
              "isHiddenFromRequester": false,
              "Constraints": {
                "MaxLength": -1,
                "ForbiddenChars": null,
                "ValidationRule": "",
                "ValidationInformation": "",
                "UniquenessConstraint": "properties/ldap/uniqueness",
                "CreationRule": ""
              }
            }
          },
    
          {
            "Name": "userprincipalname",
            "Definition": {
              "Type": "TextField",
              "Label": "['en-us:User principal name', 'de-de:Benutzeranmeldename', 'fr-fr:Nom de l\\'utilisateur principal']",
              "Description": "",
              "DefaultValue": null,
              "IsRequired": true,
              "IsEnabled": true,
              "isHidden": false,
              "isHiddenFromRequester": false,
              "Constraints": {
                "MaxLength": -1,
                "ForbiddenChars": null,
                "ValidationRule": "",
                "ValidationInformation": "",
                "UniquenessConstraint": "properties/ldap/uniqueness",
                "CreationRule": ""
              }
            }
          },
          {
            "Name": "cn",
            "Definition": {
              "Type": "TextField",
              "Label": "['en-us:Common name', 'de-de:Common-Name', 'fr-fr:Nom commun']",
              "Description": "",
              "DefaultValue": null,
              "IsRequired": true,
              "IsEnabled": true,
              "isHidden": false,
              "isHiddenFromRequester": false,
              "Constraints": {
                "MaxLength": -1,
                "ForbiddenChars": null,
                "ValidationRule": "",
                "ValidationInformation": "",
                "UniquenessConstraint": "",
                "CreationRule": ""
              }
            }
          },
          {
            "Name": "sn",
            "Definition": {
              "Type": "TextField",
              "Label": "['en-us:Surname', 'de-de:Nachname', 'fr-fr:Nom de famille']",
              "Description": "",
              "DefaultValue": null,
              "IsRequired": true,
              "IsEnabled": true,
              "isHidden": false,
              "isHiddenFromRequester": false,
              "Constraints": {
                "MaxLength": -1,
                "ForbiddenChars": null,
                "ValidationRule": "",
                "ValidationInformation": "",
                "UniquenessConstraint": "",
                "CreationRule": ""
              }
            }
          },
          {
            "Name": "givenname",
            "Definition": {
              "Type": "TextField",
              "Label": "['en-us:Given name', 'de-de:Vorname', 'fr-fr:Prénom']",
              "Description": "",
              "DefaultValue": null,
              "IsRequired": true,
              "IsEnabled": true,
              "isHidden": false,
              "isHiddenFromRequester": false,
              "Constraints": {
                "MaxLength": -1,
                "ForbiddenChars": null,
                "ValidationRule": "",
                "ValidationInformation": "",
                "UniquenessConstraint": "",
                "CreationRule": ""
              }
            }
          },
    	  {
    		"Name": "extensionAttribute1",
    		"Definition": {
    			"Type": "AccountSearchTextField",
    			"Label": "User",
    			"IsRequired": false,
    			"IsEnabled": true,
    			"LookupTableId": "Accounts",
    			"AttributesToLoad": ["distinguishedname"]
    		}
    	},
    	{
    		"Name": "manager",
    		"Definition": {
    			"Type": "TextField",
    			"Label": "ManagerDN",
    			"IsHidden": false,
    			"IsEnabled": true,
    			"Constraints": {
    				"CreationRule": "<lookup>(Accounts,distinguishedname)"
    			}
    		}
    	}
        ],
        "InitialPassword": {
          "MinLength": 8,
          "IsComplex": false,
          "IsMasked": false,
          "DefaultValue": "Dietikon8953",
          "Constraints": {
            "ValidationRule": "",
            "ValidationInformation": ""
          }
        },
        "PasswordOptions": {
          "MustBechangedAtNextLogonDefault": false,
          "CannotBeChangedByUserDefault": false,
          "NeverExpiresDefault": false
        },
        "ActivationOptions": {
          "IsHidden": false,
          "IsHiddenFromRequester": false
        },
        "Modules": []
      }
    ]

  • Hey lmu,

    what exactly does not work? Your template works fine for me.

  • I had the same put then I changed a but and it works fine for me.

                {
                    "Name": "testFeld",
                    "Definition": {
                        "Type": "AccountSearchTextField",
                        "Label": "Manager",
                        "IsEnabled": true,
                        "LookupTableId": "AccountSuchergebnis",
                        "AttributesToLoad": [
                            "samaccountname",
                            "distinguishedname"
                        ]
                    }
                },
                {
                    "Name": "manager",
                    "Definition": {
                        "Type": "TextField",
                        "Label": "ManagerValidation",
                        "IsEnabled": true,
                        "IsHidden": true,
                        "Constraints": {
                            "CreationRule": "<lookup>(AccountSuchergebnis,distinguishedname)"
                        }
                    }
                },