Change Public Name via API

TMonatisa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2025

Good day

I am trying to create a forge app to change any users public name. I have battling to get a response from this endpoint:

https://api.atlassian.com/users/accountId/manage/profile

I generated a API token and it keeps saying error 401. 

2 answers

2 accepted

0 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 28, 2025

Hi @TMonatisa 

Welcome to the community.

The User management REST API provides resources to administer and edit managed accounts.

So this is to manage users that are managed by an IDP. So I don't think you can use this in an app.

This because you are not in the position to manage the IDP endpoint.

Even if there was an API for non managed users, the option in a profile are only adjustable by the user.

TMonatisa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2025

Hi

Thank you for the welcome and the response.

Alright. But is there a way I can access it using something like Postman?

I am currently developing this forr a managed users instance. Unfortunaltely, I do not have access to an instance with managed users.

Would you be able to guide me on how to proceed?

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2025

Hi @TMonatisa 

See this post on the developer commuinty.

https://community.developer.atlassian.com/t/missing-public-name-field-in-jira-rest-api-user-endpoints/73537 

It's also best to raise question on development on the development community

0 votes
Answer accepted
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

Hi,

welcome to the community.

Did the token work when you try a simple get ?

try to generate a new token

 

 

TMonatisa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2025

Hi Mohamed

It works if I get projects, issues, or users. My issue is the api.atlassian.com approach to get the data I need.

 

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2025
TMonatisa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2025

No, I did not. I went the manage account approach.

I see it provides me the organisation ID as well. How do I get the bearer token after generating the token and organisation ID?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events