0 votes

Hello Support,

is it possible connect adaxes from a 3rd party software and read user attributes?

is there a example available?

Thx,

by (50 points)

1 Answer

0 votes
by (294k points)
selected by
Best answer

Hello,

Yes, it is possible. For example, you can use PowerShell scripts. The following code sample outputs the values of the Department and Description properties for a user. In the script, the $userDN variable specifies the distinguished name (DN) of the user.

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

$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

$userDN = "CN=John Smith,CN=Users,DC=domain,DC=com"
$user = $admService.OpenObject("Adaxes://$userDN", $NULL, $NULL, 0)

Write-Host $user.Department
Write-Host $user.Description

For details, see https://www.adaxes.com/sdk/?WritingAdsiScripts.html.

Related questions

0 votes
1 answer

Hi Support, I'm trying to use adaxes to send a couple of branded emails with User information such as UPN and First name. I've written some HTML email code but would ... <table class="wrapper" width="100%" cellspacing="0" align=center cellpadding="0">

asked Feb 18, 2020 by richarddewis (260 points)
0 votes
1 answer

In this case the working example would be that the user would need to add a new title into a list of titles in the title property pattern

asked Dec 13, 2024 by msheppard (660 points)
0 votes
1 answer

Just wanted to know if we could: Change the name of "Rename" Hide it altogether from the user page We've created a custom rename comand would prefer to simplify the user interface.

asked Nov 22, 2024 by msheppard (660 points)
0 votes
1 answer

Hi all, I have a condition during new user creation - Where the corporate email is entered into the email address field, but a custom drop-down for "Mailbox required?" is No. ... screen, and be able to save the result of this choice to a variable? Thanks all,

asked Oct 24, 2024 by dshortall (80 points)
0 votes
1 answer

I'd like to limit users from being able to login to the Web interface. In other words, if a user opens multiple browsers or tabs, can I prevent them from being able to login to each tab/browser and starting multiple sessions? Thanks!

asked Apr 10, 2024 by cewilson (190 points)
3,596 questions
3,283 answers
8,317 comments
548,256 users