0 votes

Hello,

I want to show an extension attribute when searching for a user in the web interface. I tried to add it under browsing, but its still not there.

How can I modify the attributes that are shown in the results?

Thanks!

by (20 points)
0

Hello,

Sorry for the confusion, but we are not sure what exactly you mean. Could you, please, post here or send us (support@adaxes.com) a screenshot of the Web interface where you want to add the property? Any additional details regarding the desired behavior will be much appreciated.

0

Thanks for the fast reply.

I want to change view of the attributes that are visible when searching for a user: adaxes.png Here I want an extensionattribute to be shown

1 Answer

0 votes
by (211k points)

Hello,

Thank you for specifying. The form you are referencing is related to viewing a user account. It is the same when you search for a user or just browse to one. For information on how to modify Web interface forms, have a look at the following tutorial: https://www.adaxes.com/tutorials_WebInterfaceCustomization_CustomizeFormsForUserCreationAndEditing.htm. In your case, you need to activate the View tab on step 5 of the guide and then add the extension attribute to the required section.

0

Hello,

You can upload it to our FTP. Can we send access details to your profile email address? If not, please, specify the email address we should use.

0

yes, just send it to my e-mail adress :)

0

Hello,

Thank you for the confirmation. The email was sent to the email address from you Q&A profile.

0

Hello,

Thank you for the provided backup. The issue occurs because of duplicate object types in the drop-down list of the Forms and Views section. image.png To remedy the issue, execute the below script on the computer where Adaxes service is installed. When prompted, specify the credentials of the Adaxes service account (specified during the software installation). Once done, refresh the Web interface configurator page using Ctrl+F5.

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$credential = Get-Credential

# Connect to the Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the 'WebUI Configuration' container
$webuiConfigPath = $admService.Backend.GetConfigurationContainerPath(
    "WebUIConfigurationContainer")
$webuiConfigContainer = $admService.OpenObject($webuiConfigPath,
     $credential.UserName, $credential.GetNetworkCredential().Password, 0)

$webUITypes = $webuiConfigContainer.GetWebUITypes()
foreach ($webUIType in $webUITypes)
{
    $ManagementFormsViewsSettings = $webUIType.ManagementFormsViewsSettings
    $ObjectTypes = $ManagementFormsViewsSettings.ObjectTypes

    $types = New-Object "System.Collections.Generic.HashSet[System.String]"
    for ($i = $ObjectTypes.Count - 1; $i -ge 0; $i--)
    {
        $type = $ObjectTypes.GetItem($i)
        if (!$types.Add($type.ObjectType))
        {
            $ObjectTypes.Remove($i)
        }
    }

    $webUIType.ManagementFormsViewsSettings = $ManagementFormsViewsSettings
    $webUIType.SetInfo()
}

After running the script and refreshing the page, you should be able to add the attribute to the form.

0

Now it worked! Thank you.

Related questions

0 votes
1 answer

How do you add a custom attribute to the search results? Version 2017.2 / 3.8.14823.0

asked Nov 12, 2018 by hgletifer (1.2k points)
0 votes
1 answer

I've got a scheduled agent that is attempting to export data for updated employees. When an employee record is updated, we're setting the value of the LDAP custom attribute ... ") # Release resources used by the search $userResult.Dispose() return } ...

asked Oct 17, 2015 by sandramnc (730 points)
0 votes
1 answer

Adaxes support, Is there a way to disable the red x icon in the search results window on a user account. This icon appears by defualt when we disable an account but ... allows is to enable the users picture. Can this be accomplished in the xml config files?

asked Aug 22, 2013 by rjthompson (80 points)
0 votes
1 answer

I have a scheduled task that runs a PowerShell script. The script checks various properties of each user, and uses $Context.LogMessage to report on properties that are not ... (doesn't have to be LogMessage) into a single report or single notification email?

asked Oct 13, 2020 by jcrook (20 points)
0 votes
1 answer

I have a powershell scrip that runs as a Action on a custom command, and this scrip calls the ExecuteCustomCommand PS Function on a user. Is there ... .ExecuteCustomCommand($command.CommandID, $commandArguments) And have the result contain the log messages.

asked Jun 17, 2020 by Justinc (60 points)
2,607 questions
2,344 answers
6,228 comments
861,092 users