If an account is deleted rather than disabled in Active Directory, nothing happens in ServiceNow.

pavana3
Tera Expert

Hi Team,

How to implement if if an User account  is deleted rather than disabled in Active Directory, nothing happens in ServiceNow. how to solve problem.
if an account is deleted or not found it will also be marked inactive in ServiceNow after 2 weeks. 

If any one know please Help me out.

 

Currently working for deactivated accounts but not working for deleted accounts 

Thanks & Regards,

PB

1 ACCEPTED SOLUTION

pavana3
Tera Expert

@bhu 

Can you help me script part i will schedule 2 weeks once  plan to update disabled users or deleted users as you said &  I have not receive any details from the integration regarding disabled user,  (sys_updated_on field of user records and if it is not recently updated, you can make it inactive. This can be done via scheduled job based on the frequency of your AD synchronization. ) - How to active this 

 

Thanks & regards,

PB

View solution in original post

14 REPLIES 14

pavana3
Tera Expert

@bhu 

Can you help me script part i will schedule 2 weeks once  plan to update disabled users or deleted users as you said &  I have not receive any details from the integration regarding disabled user,  (sys_updated_on field of user records and if it is not recently updated, you can make it inactive. This can be done via scheduled job based on the frequency of your AD synchronization. ) - How to active this 

 

Thanks & regards,

PB

Hi Bhuvan,

 

I have created one schedule job in Transformed map  its working for me based on Encoded Query  we can do this 

 

 

Thanks & Regards,

PB

Hi Bhuvan,

 

AD what i have created and de-activated that users only i can able to de-activate in Servicenow using transfer map schedule job  But if i will delete any user in AD those users not deleting or de-activating in ServiceNow its showing still active user only. any idea how to get deleted users ? from last 2 weeks deleted user records 

do you have any idea in this.

 

Thanks & Regards,

PB

 

@pavana3 

 

Can you please let me know how the  integration is setup and provide more information so that I can replicate in my PDI using dummy data and share more details.

 

Is it using Azure AD user provisioning or any other method where-in user records are created in import set table, transform is applied and created/updated in target table 'sys_user'. If possible, please share screenshots of your integration configuration.

 

I hope you appreciate the efforts in providing you with more information. If my responses helped to answer your query, please mark it helpful & accept the solution. As per community guidelines, you can accept more than one answer as accepted solution.

 

Thanks,

Bhuvan

Bhuvan,

 

Step 1 : Created test user in on-prem AD and then  through transfer map  in ServiceNow sys_user table created Teast user with Active true . --- This is fine

Now i have deleted Test user in on-prem AD and then trying transfer schedule job bit its not working only working for deactivated users in on-prem AD if i will de-activate Test user in on-prem AD and transfer schedule execute after that ServiceNow sys_user table that Test User changed to Active 'False' --- this fine .

i am looking for Deleted users .

if you know help me in this.

Thanks & Regards 

PB