- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2017 08:40 PM
Hi all,
I am trying to refine our nightly LDAP user import, and would like to ignore any ad account that does not have an email address, and not create a ServiceNow account.
To be honest, I am not actually sure where to start. Googling didnt help me much either, but that could be on me, rather than the answer not being out there.
Does anyone know of an easy way to implement this?
Cheers,
Brendan
EDIT - For people looking at this from the future.
- Firstly, you are welcome.
- I was able to get this working with an LDAP OU Definitions filter. basically, you want to append (mail=*) to your existing filter(s)
- Example Filter: (&(objectClass=person)(sn=*)(!(objectClass=computer))(!(CN=*@*))(!(CN=*Account*))(mail=*))
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2017 03:59 PM
Filter way is best...I was about to suggest the same. No need to use Business Rule. Business rule is useful when you looking for some complex scenarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2017 08:50 PM
Hi Brendan,
you can achieve this using onbefore transform script, check for source record email address and if it is empty and the operation is insert then set the ignore flag true.
if (action == 'insert') ignore = true;
Regards,
Durga.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2017 01:39 PM
Hi Durga,
Thanks for getting back to me.
Im not completely following, do you happen to have an example I can work off?
Cheers,Brendan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2017 03:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2017 03:58 PM
Hi Rajeev,
Thanks for that - seems simple enough.
I have just been testing with the LDAP OU Definitions, and filtering accounts without an email address from there.
I was successful after adding the following filter: (mail=*). This tells the import to only allow users with an email address.
My question is - what is the best way to do it? the filter way has worked, and I cannot see any issues with it, however if people are suggesting to use a transform map, then why would that be better than stopping the accounts coming through at the filter stage?
Cheers,
Brendan