The CreatorCon Call for Content is officially open! Get started here.

Can ServiceNow user accounts be set to active/inactive based on active directory user enabled/disabled?

Rick Angel
Kilo Explorer

Is it possible to control when a ServiceNow user account is set to Active or Inactive based on the AD user setting for enabled/disabled?  Often we pre-create users in AD a few days before they actually start since they are fed automatically from our HR system into AD.  Those users are set to disabled.  On the start date they become enabled in AD.  But it seems that ServiceNow does not see that change on the AD account.  We use secure LDAP to feed AD changes into ServiceNow through a scheduled job daily.  Thanks! 

7 REPLIES 7

jhauptmann
Kilo Guru

Yes.  See this article in Docs: Inactive LDAP User Accounts

Rick Angel
Kilo Explorer

I'm asking the reverse of what this article is referring.  We are not having problems with ServiceNow deactivating users when AD shows disabled or deleted.  I want ServiceNow to recognize when a disabled AD user is set to enabled.

The userAccountControl field should do what you are asking. The field references a flag on the AD account and has different values depending on the flag state.

 

https://jackstromberg.com/2013/01/useraccountcontrol-attributeflag-values/ lists all the values

sk59
Tera Expert

Is this Question answered I am facing the same issue.

I want ServiceNow to recognize when a disabled AD user is set to enabled.