Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence CLI error with 'action run' and 'removeUser'

Hello.

Using plug-in 'Run CLI Actions in Confluence' inside a macro.

I use the following to delete a user and it works fine.

    --action removeUser --userId "user1"

I want to delete multiple users, so I used this :

--action run

@Data:
--action removeUser --userId "user1"
--action removeUser --userId "user2"

But I get this error message :

Run: --action removeUser --userId "user1"
Client error: No user with id 'user1'.
Client error: 1 actions failed

Even though 'user1' really exists and I can delete it using a single line of action.

Am I missing something ??

Thx :)

1 answer

Hi @Sylvain Gagnon

We are from the Bobswift support team and we have created a support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-7107 in our portal. Please access the Support request and once you signup, please let us know your username so that we can add yourself as the reporter of the support request.

Use the --continue parameter in your CLI action to run.

Run the following command to remove the multiple users from the confluence.


-a run --continue
@DATA:
--action removeUser --userId "user1"
--action removeUser --userId "user2"

Please let me know if you need help to set this into place.

Thanks,
Naveen

Hello !

Well, it's even worse now...

I tried that and I just get error messages for the 5 users (who all exist) :

Run: --action removeUser --userId "user1"
Client error: No user with id 'user1'.

Run: --action removeUser --userId "user2"
Client error: No user with id 'user2'.

Run: --action removeUser --userId "user3"
Remote error: Administrator permission required for this request. WebSudo login failed with a permission violation.

Run: --action removeUser --userId "user4"
Remote error: Administrator permission required for this request. WebSudo login failed with a permission violation.

Run: --action removeUser --userId "user5"
Client error: No user with id 'user5'.
Client error: 5 actions failed

So 2 times out of 5, it gives a permission error (I'm running it with an confluence-administrators user...)

Then, I tried to remove one by one with a single line.

I get :

User 'user1' removed.

Then, I go to the user list and the user hasn't been deleted...  I run the macro over and over and it says 'User 'user1' removed' each time without doing anything as far as I can see...

Good thing I'm using an evaluation version, I think I'm gonna give up !

Hi @Sylvain Gagnon

We request you to please sign up in our portal to access this support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-7107 so that we can work on this and troubleshoot the issue.

In the meantime, please let us know the Confluence and Run CLI for the actions app version you are using.

Thanks,
Naveen

Hello.

I signed up, but I don't have access to the ticket you mentioned (No Access message).

I found the problem.  I thought that maybe it was related to the 3 nodes we have in our DataCenter.

When I shutdown 2 nodes and I keep only one running, everything works fine...

But I thought the App was Data Center ready...

Running Confluence Data Center on 3 nodes (v7.12.2) with plug-in (v9.8.0).

Thx

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.12.2
TAGS
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

179 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you