User management using REST APIs Edited

Hi There,

I am new to JIRA, so kindly excuse if this question is very silly :)

I am trying to perform the User Management operations using the REST APIs. I was able to Create, Delete & Search (for single user using the username paramater).

I am not able to update user information (like emailAddress or displayName) using PUT method. Can you please let me know what I'm missing here:

I created the user using following POST method (/rest/api/2/user)

{
    "emailAddress": "test.provisioning@example.com",
    "name": "test.provisioning",
    "displayName": "TestProvisioning"
}

And the user got created successfully. But when trying to invoke PUT method using the following JSON(for performing Update operation):

{
    "displayName": "Test2Provisioning"
}

I am getting the below error message:

"Oops, something went wrong

Please check".

Please help...

Also I would like to know of there is any approach using REST APIs to

*Fetch the whole list if users from User Management

*User Password Reset

*Enable / Disable a user

 Let me know for any further clarifications. Thank you in advance.

 

Regards,
Sadam

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

131 views 5 9
Read article

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