We recently deleted a few users from the jira users group in our AD.
It seems like some of them were completely removed and some stayed active and still with the license.
What could be the cause of that?
Is there anything I should configure in order for users to automatically removed from the license list and transformed to Inactive?
Next time, inactivate them in AD, wait for the changes to sync in to Jira and then delete the users from AD. You'll need to manually inactivate them in Jira to clean things up now. You could also write a script to batch change them via the REST API or use the Jira CLI.