Can some help me come up with a SQL command to display the users located in the local groups of bitbucket?
I have the following command that I used for Confluence:
SELECT cu.id as user_id, cu.user_name, cg.group_name, cd.directory_name
FROM cwd_user cu
INNER JOIN cwd_membership cm ON (cu.id = cm.child_user_id)
INNER JOIN cwd_group cg ON (cm.parent_id = cg.id)
INNER JOIN cwd_directory cd ON (cu.directory_id = cd.id)
WHERE cg.local='T' ORDER BY cg.group_name
But this command doesn't seem to work in bitbucket. Is the database schema that different between the two products? Would someone have a bitbucket equivalent command to produce the data?
Thanks for any assistance on this.