Delete Console Operators inactive for more than (no.) of days

Is there a way we can delete operators that have not logged-in let’s say for more than 30 days?

I understand that it could delete some of the contents these users created but we need it to clean-up LDAP users that are already removed in AD.

I think RestAPI can achieve this but I’m not sure if we can add a conditional statement to specify the number of days…
https://developer.bigfix.com/rest-api/api/operator.html

Can anyone help me on this?

Thank you.

delete operator/{operator name} 

names of bes users whose (exists last login time of it and (now - last login time of it > 30 * day))

3 Likes

Thank you so much :slight_smile: This worked for me.