I would need a MySql query where I get all my users (name,username,email,groups) from the JIRA Internal Directory.
With this query I get all the user information except the groups. But I would need the groups too.
select * from cwd_user where directory_id =
Simplify the SQL and make it explicit. (The "as" phrase is the bane of SQL readability. It's great when you're an expert DBA and no-one else has to understand what you're doing, but for most of us, it really just makes it all harder to read)
The most simple and precise form of this query is
Select * from cwd_user join cwd_membership on cwd_membership.lower_child_name = cwd_user.username
To limit the directory, add
where cwd_user.directory_id = 1
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs