Enforce mandatory fields and allow for easy filtering in default script

Patrick Johannessen 5 years ago in UNIFYBroker/Aurion • updated by anonymous 3 years ago 2

Currently the default provisioning script relies on "good" data being passed to it. Some changes that should be made:

  • Check that all required fields (Person Number, given names, sn, termination state etc) are present
  • Include an easy configuration option at the top to specify a particular PersonNumber or department so it's clear how LITE can be tested gradually.
  • Include userPrincipalName in script
Affected Versions:
Fixed by Version:

Regarding the first option, the only place I can think you could do that is in the connector schema. This of course creates a validation warning and prevents the objects from coming through into the connector. The alternative is filtering at the start of the PowerShell script but users would never know that there were any users missing from the lot.

Regarding the second, you could do something like:

if ($out['PersonNumber'].Value -ne 'Test123')
   $components.ConditionallyIgnore = $true;