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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

579 views 25 15
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