Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

How to update user's "name"

In the API, the name field has a capital letter however the key is all lowercase. I just need to be able to update that to be all lowercase. The front-end has no options to change this. The user was created by "invite" using Gsuite.

1 answer

1 accepted

1 vote
Answer accepted
Dario B Atlassian Team Sep 26, 2019

Hi @Adam Asper ,

Can you kindly provide more details on what the issue is and what you are trying to achieve since I am not sure I have a correct understanding of it?

Are you trying to modify the display name of a user or anything else? 

Are you using Managed Accounts or Google Integration

Please provide as many details as possible.

 

Cheers,
Dario

According the the api, my "key" and "name" are aasper. For another user, their "key" is jsmith and their name is "jSmith". We were both added via gsuite, capitalization aren't different in gsuite either. Mine being aasper@domain and theirs being jsmith@domain

They api endpoint is /rest/api/3/user, that's where I'm gathering my key and name

Hi @Adam Asper ,

May I ask why you want to change the "name" property returned by the rest/api/3/user endpoint

This property is not used anymore and, as written in the Deprecation notice and migration guide for major changes to Jira Cloud REST APIs to improve user privacy page, name and key properties are being removed from the User object and you should use the accountId instead.

This is also mentioned in the Major changes to Jira Cloud REST APIs are coming to improve user privacy:

Attribute Status
self Changed to reference Atlassian account API URL.
name Removed following the deprecation period.
key Will be changed to return the same value as accountId for new users without notice and then removed following the deprecation period.
accountId   Will always be returned. Primary identifier for users.

 

Please let us know what you are trying to achieve since there may be other ways to do so.

 

Also, for further details about user name and user key removal please review the below 2 pages:

 

 

Cheers,
Dario

Thanks Dario, I was unaware of the planned deprecation! I'm good then!

Like Dario B likes this
Dario B Atlassian Team Oct 03, 2019

You are very welcome @Adam Asper ! Happy to know this was helpful :) 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,431 views 22 32
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