0 votes

Quick question

we may have the need to pull directly from Adaxes some custom attributes, are they available for other systems via an API call?

by (3.2k points)

1 Answer

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

Hello,

Yes, here is a PowerShell example:

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

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

$user = $admService.OpenObject("Adaxes://CN=John Smith,CN=Users,DC=company,DC=com", $NULL, $NULL, 0)
$customAttributeValue = $user.Get("adm-CustomAttributeText1")

C#:

using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;
class Program
{
    static void Main(string[] args)
    {
        AdmNamespace adsNS = new AdmNamespace();
        IAdmService admService = adsNS.GetServiceDirectly("localhost");

        IADs user = (IADs)admService.OpenObject(
            "Adaxes://CN=John Smith,CN=Users,DC=company,DC=com", null, null, 0);
        string customAttributeValue = (string)user.Get("adm-CustomAttributeText1");
    }
}

Adaxes also provides XML API based on the SPML protocol.

For details, see http://adaxes.com/sdk/.

Related questions

0 votes
1 answer

Any chance there is support for configuring mail settings in adaxes using HTTP Graph API integration instead of Exchange Online SMTP?

asked Jul 10 by emeisner (160 points)
0 votes
1 answer

I am trying to build a custom command to add a specific user to a rule based group in adaxes and I am curious if it is something we can use the API to complete?

asked Mar 7 by Brian (40 points)
0 votes
1 answer

Hello, Is there any other authentication methods we can use besides basic authentication for the REST API? We would like to integrate the rest API into a federated environment but from the ... if this is possible and if not if it is on the road map. Thanks.

asked Feb 25 by KoleArmstrong (160 points)
0 votes
1 answer

Hi, { "criteria": { "objectTypes": [ { "type": "USER", "items": { "type": 1, "items": [ { "type": 0, "property": "accountDisabled", "operator": "eq" ... ": { "isDisabled": true, Please share the right request JSON to get the required result. Thanks, Lohith

asked Oct 3, 2024 by lom (20 points)
0 votes
1 answer

We are creating a scheduled task with powershell script to check for group licensing errors in Azure/Entra ID using Graph API but the connection throws an error. `# Connect to Graph ... ($count -le 0) { write-host "No user found with license errors" }`

asked Jan 26, 2024 by maarten.vaes (140 points)
3,742 questions
3,420 answers
8,641 comments
1,391 users