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

audit history for user table fields

Vedavalli
Tera Expert

Hi

I am working on a flow in which I have to give condition where the condition is like we have to fetch the inactive users in the last month from the user table. So ,how to set this condition in the flow?

 

And also, I would like to know when a field(active) is being updated and when the updated info of the field is  being recorded?

Thanks in advance.

3 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Vedavalli 

user table is not audited so you won't know when the field got updated to active false

So you might have to use some custom logic.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Mark Manders
Mega Patron

You will need to activate audit on the user table. I am not sure why this isn't activated by default, since every client at some time comes with a question about 'what happened to this user', but for your requirement, you will need it.
And, depending on why you need this information, it could be helpful to put a field on the user table that sets the 'inactivation date/time'. That really makes it easy to get those users.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

Activating audit on the user table will allow to record all changes on the user record (just like you have on the incident record: who changed what when).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

7 REPLIES 7

Hi @Mark Manders ,

 

Actually, what does this audit will do?

valli_17_0-1717059078485.jpeg

Is this the audit you are saying ?


Thanks in advance.

Hi @Mark Manders ,

 

Actually, what does this audit will do?

Vedavalli_0-1717059390273.jpeg

 

 


Is this the audit you are saying ?


Thanks in advance.

Activating audit on the user table will allow to record all changes on the user record (just like you have on the incident record: who changed what when).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark