In our Stash instance we use JIRA as the source for our user directory, and that user directory is specified in a corporate LDAP instance. If the user has been deactivated in LDAP, I can see the user is not in the list of Users in Stash anymore. However, the entry for the user name will still persist in the Global Permissions table as well as the permissions for a Project and a Repository.
Is there a way to find these 'orphaned' entries so they can be cleaned up by an administrator? In JIRA I can do this by running an SQL query that checks data from project against cwd_user. Is there a similar query that can be done in Stash?