Filter disabled accounts based on account status

Hi,

Is there a way to filter disabled accounts based on account status?

I am aware that there is a method to update all disabled accounts with a specific department but wanted to check if there is a way we could use the account status in AD.

Hi @aria,

You can set up the filtration to use the userAccountControl property, but this method is quite complicated and may not be worth the effort.

You will need to manually set up mapping to use this property for filtering in the Org Chart. Note, in this case you may also need to use JavaScript bitwise operators to work with userAccountControl value correctly.

Please see this article for further reference.

The easiest way to filter disabled accounts is to use one of the following options:

  1. You may set a user to have no manager, here you will find how to do it.
  2. You may also hide such employees by creating a department called, fox example “Off company”, putting disabled employees in this department and filtering the department out of the chart like this:
function(itemData){
   return itemData["Department"] != "Off company";
}

Hope this helps. Please feel free to ask any questions.

1 Like