Hello,

is there possibility to catch the "Domain NetbiosName" of a User object? We'd like to use this for a Password Reminder eMail to the Account Owner.

Subject on "Send e-mail notification" action should look like: "Your password on %Domain NetbiosName%\%username% will expire in %adm-PasswordExpiresDaysLeft% day(s)

We found an attribute for DomainDistinguishedName (adm-DomainDN), only

Best regards Michael

by (20 points)

1 Answer

by (15.9k points)
0 votes

Hello Michael,

Yes, it is possible using a PowerShell script to send the email notification. Please, find the script below. In the script:

  • $subjectTemplate - Specifies a template for the email notification subject. In the template, the {0} placeholder will be replaced with the domain name of the account.
  • $message - Specifies the email notification message.
$subjectTemplate = @"
Your password on {0}\%username% will expire in %adm-PasswordExpiresDaysLeft% day(s)
"@ # TODO: modify me
$message = "Your account password expires in %adm-PasswordExpiresDaysLeft% day(s)" # TODO: modify me

# Get domain name
$domain = $Context.BindToObjectByDN("%adm-DomainDN%")
$domainName = $domain.Get("name")

# Build subject
$subject = [System.String]::Format($subjectTemplate, @($domainName))

# Send mail
$Context.SendMail("%mail%", $subject, $message, $NULL)

Related questions

Hello, We currently use a lot of business rules that act as job templates. When a matching job title is found after a user creation, it runs the business rule to ... business rule is applied so the user is at least assigned a basic access template? Thanks

asked Jun 6, 2018 by jhair (520 points)
0 votes
1 answer

I was wondering if the abilities below are configurable for Domain Admin users in the web portal: Mass password reset Assign different passwords per person, so it's not the same ... to our users, instead of me writing a powershell script to do this. Thank you!

asked Jul 18 by apruitt (180 points)
0 votes
1 answer

Does Adaxes support this natively or would we have to rely on Graph API to accomplish this?

asked Jun 26 by ms1 (40 points)
0 votes
1 answer

In 2025.1 on the web interface, Entra AD no longer appears as a managed domain, though our local AD still functions correctly. Entra users can still be found via search, but ... Entra AD Please also note this was working before the update to 2025.1 from 2023.2

asked Apr 15 by Biagi_IT (20 points)
0 votes
1 answer

Hi, Situation: Imagine we have a forest consisting of 3 domains (1 root domain and 2 sub domains) in a single forest At the moment we installed Adaxes service in the root domain ... "enterprise admins" group (We wouldn't want to do that...) Any other ideas?

asked Apr 10 by dper (40 points)
0 votes
1 answer