Update User Cloud Rest API dosn't work.

I have successfully created a user (POST /rest/api/2/user), but am unable to update users (PUT /rest/api/2/user).  I have tried to change emailAddress, displayName, and active status without any success.  I am getting "Internal server error" for emailAddress and displayName update attempts, and "No value found to be changed" for active status.

I realize that update user is "experimental", and I have managed to locate a Nov 2016 document (https://confluence.atlassian.com/jirakb/user-management-rest-api-changes-in-jira-cloud-858756548.html) which discusses limitations, though it implies that active status should be modifyable.

Inability to make even basic user changes is a sever limitation for my application.

Some questions:

  1. Is there a more recent document describing rest API limitations?
  2. Is there a more recent document describing update user in particular?
  3. What lies ahead for update user?  Is it on a roadmap where some control will be exposed?
  4. Is there another API that exposes update user functionality?

2 answers

0 vote

Hi John,
There have been changes recently to the Cloud API.  They are cited in the KB article you linked to:  User management REST API changes in JIRA Cloud

Update user
    PUT     /api/2/user     

    This request can only modify the "active status" of the user
    Passwords included in the request payload will always be ignored

 


This particular rest end point is only able to set the active/inactive status of a user now, it cannot be used any longer to change values like email address.   I am afraid that there is not any other REST endpoint that can make this change in Cloud at this time.

The Cloud offerings have changed this because they are rolling out a new means to manage these accounts.  

Perhaps you could look into using JIRA Server as a means to manage these user accounts via REST.  The Server side does not have this same restriction, but of course this implies that you would be hosting and managing your own JIRA instance rather than using the Cloud offerings.

Hi John.

You said that you created a user. Can you show me how you do that? I already try many things but unfortunately I can't obtain the result I want :(

Thanks in advance.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot