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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Require some working REST API to activate inactive JIRA user(bot/system user)

Hi Everyone,

We are using self hosted datacenter JIRA, Not 

 

payload = json.dumps({
'active': True
})


query = {
'username': user  #### passing username via loop from list of users(Bot user/service user)to be activated####
}

response = requests.request(
"PUT",
url,
data=payload,
headers=headers_for_update,
params=query,
auth=auth
)
Python script is running without giving any error but inactive user not getting activated, its api document saying username and userKey got deprecated, accountID for users is available only on JIRA cloud not on datacenter, need some working api or solution to activate list of inactive user programmatically /REST API.
userKey

string

This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.

username

string

This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.

Below is api link which shows deprecation statement:

 

Thanks and Regards,
Shiv Jha

1 answer

0 votes
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.
Mar 07, 2023

Hi,

Welcome to the community

If you are using Data Center you need to use his api
https://docs.atlassian.com/software/jira/docs/api/REST/9.6.0/#api/2/user-updateUser

the word "true" for the active parameter need to be in lower case

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events