Skip to main content

Domains

Onboard and manage the Active Directory and Entra domains Authnull protects, including per-domain enforcement mode and MFA provider.

Endpoints

ScreenMethodEndpoint
List AD domainsPOST/ad/GetAllDomains
Add AD domainPOST/ad/AddDomain
List domain groupsPOST/ad/GetAllGroupsByDomain
List users in groupPOST/ad/GetAllUsersByGroup
List all AD usersPOST/ad/GetAllAdUsers
List Entra usersPOST/ad/GetEntraUsers
Update domain enforcement modePOST/ad/updateDomainEnforcement
Get domain MFA providerPOST/ad/GetMFAProvider
Set domain MFA providerPOST/ad/SetMFAProvider
Delete domain MFA providerPOST/ad/DeleteMFAProvider

List AD domains

POST /ad/GetAllDomainsIdentity Provider → Domains

Returns every domain onboarded to the tenant. Call this first: the domainId it returns is required by most other AD and Radius endpoints.

Body parameters

FieldTypeDescription
orgId (required)integerOrganization the request acts within. Returned to you at onboarding.
tenantId (required)integerTenant inside the organization. Most single-tenant deployments use 1.
pageIdinteger1-based page number. Defaults to 1.
pageSizeintegerRecords per page. Defaults to 10, maximum 100.

Example request

curl -X POST 'https://api.authnull.com/ad/GetAllDomains' \
-H 'Content-Type: application/json' \
-H "X-Authorization: $AUTHNULL_TOKEN" \
-d '{ "orgId": 105, "tenantId": 1, "pageId": 1, "pageSize": 10 }'

Responses

200 OK
{
"domains": [
{
"domainId": 1,
"domainName": "corp.example.com",
"enforcementMode": "monitor",
"status": "active"
}
],
"totalCount": 1
}
403 Forbidden
{
"error": "token not scoped to organization 105",
"code": 403
}

Errors

CodeMessageCause
401missing tokenX-Authorization header absent or empty.
403scope mismatchorgId or tenantId does not match the token's scope.

Enforcement and MFA

updateDomainEnforcement switches a domain between monitoring and enforcing. SetMFAProvider and DeleteMFAProvider attach or remove the MFA provider used for that domain's sign-ins.

Request and response payloads for these four endpoints have not been supplied and are not documented yet.

Payloads needed.

AddDomain, updateDomainEnforcement, GetMFAProvider, SetMFAProvider and DeleteMFAProvider are indexed above but not yet specified. Send one example request and response for each to complete this page.