Hi there,
I need to revalidate users that were previously entered into an item in a People Picker field. Otherwise if users that have since been disabled in AD will cause a workflow error when the permission workflow runs.
It seems the default SharePoint people field has a Validate() function (not much documentation on it though), but I *believe* I won't be able to select it in the form (like you can do with MM fields) as Nintex has created their own from scratch (which is why we have to use the NF PeoplePickerAPI)?
So far using JS I've been able to get the users from the field, and use the Nintex PeoplePickerAPI to search for the users. It seems if the AD account is enabled the returned id will be domainusername, and will include the claims part i:0#w|domainusername if they're disabled.
Using this I could display a message to the user (I'd rather not just remove them without notifying the user).
Seems a little bit hacky and potentially unreliable... does anyone know another way to do this? Is the SP People Picker field there in the background so I can jump on it and
But it would be ideal if there's a better way of doing it.
Cheers,
Nick
Default SharePoint people picker validation:
https://sharepoint.stackexchange.com/questions/239930/people-picker-validation