Posts Tagged: ‘User Management’

Managing Domino Users with PowerShell

5. Dezember 2014 Posted by Stephan Kopp

Some of my colleagues created a really nice Domino Application to manage users with browsers using XPages.

With their application, they provide many useful functions also as web services.

The nice “side effect” is that these web services can be used from any other applicable system.

For example you can use PowerShell to create Domino Users with a few lines of code:

$wsdl = "http://dominoserver/service.nsf/DominoUserManager?wsdl"
$username = "testuser"
$passwd = "passwort" | convertto-securestring -AsPlainText -Force    
#Password should be stored in the script only for testing!
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $passwd

$DUM = New-WebServiceProxy -Uri $wsdl -Credential $cred -Class 'Proxy' -Namespace "DominoUserManagerService"
$user = New-Object DominoUserManagerService.REGISTRATIONREQUESTDATA
$user.FIRSTNAME = "Stephan"
$user.LASTNAME = "Kopp"
$user.SHORTNAME = "skopp"
$user.PASSWORD = "myNewPassword"
$user.QUOTASIZE = '0'
$user.QUOTAWARNING = '0'
$user.MAILACCESS = '2'
$user.IDVALIDITY = '-1'

We can’t make all this open source, but if someone is interested and wants more information, please contact me!

Filed under: IBM Notes/Domino