How to get UserId in Confluence

I'm trying to use CLI to disable bulk users use below command:

./ --action runFromCsv --common "--action removeUserFromGroup" --file /home/lcong/Desktop/1.csv --server --user user1 --password ***

# cat 1.csv


Whant I'm understanding is that the userId is the username, and I can got the username list user --action getUserList command. But when I doing disable action, it says 

Client error: No user with id 'user1'.


I also tried other users are got the same error, anyone can help to give some advice? Is the username not userId?  



1 answer

0 vote
Ann Worley Atlassian Team Jul 26, 2017

From the looks of the examples from Bob Swift's site, the userId is the username:

--action removeUserFromGroup --userId "testuser3" --group "testgroup2"

If you run the action without the file do you still get the error? (I am suggesting this for troubleshooting, not as a resolution. I understand we need to be able to bulk update via the csv.)

Hi Ann, 

Yes, still get the same error, from the Examples from Bob Swift's site the userId seems is the username, and I'm able to run bellow command to get all the user list, so I'm not sure why it is keep saying no user with the listed userID. 


--action getUserList 



./ --action removeUserFromGroup --userId "syiyi" --group "confluence-users" --server --user admin --password ***




Client error: No user with id 'syiyi'.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

255 views 11 10
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you