I'd like to generate a list of all group memberships for our Atlassian instance.
I know that this is available on the GUI using the Export button in the groups page.
However, I want to extract this list automatically (via a script) on a daily basis.
Now, the --action getGroupList action does almost what I want - it outputs for each group its members, using their UUID. I'd like to get the user name or the email instead. How do I get that from this action?
Good day, I am Naveen from the Bobswift support team.
We have created a support request https://appfire.atlassian.net/servicedesk/customer/portal/11/SUPPORT-95366 to better track your request. However, we have added you as a reporter to this support request
Please sign up using this link sign up and share with us the user name or id.
Using the below CLI action you can get a list of users who are present in the particular group.
--action runFromGroupList --common "--action getUserList --group @group@ --columns "User,Name""
Looking forward to your response!
Thanks,
Naveen
Howdy Naveen
Thanks for the statement above; it lead me to the solution, not quite as good as I hoped, but good enough for the moment.
First, I found that not quoting parameter values is no good - we have a group named "Bauer AG" which broke the statement. So, I used a trick found in your master class videos: use \" inside the common section.
Then, I got the message that columns need to be numbered - but what numbers, please?
So, I just added 1-10. And acli supplies the names to the numbers - good to know for all --column instances.
The final statement is:
-a runFromGroupList --common "--action getUserList --group \"@group@\" --columns \"1,2,3,4,5,6,7\" -f \"~/Downloads/test.csv\" --append "
However, the result holds some inadequacies, I think:
Can you help me with that a bit more? Thanks.
Yours truly
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.