Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Enabling site access on JIRA CLOUD to user using REST API Edited

Hello,

We created users using administrators account. New users are appeared in Users section on JIRA, but created users are not having access on site.

We have hundreds of users and dont want to do it manually from each user's details page.

 

Is any API option to make this, so I can put in script and iterate for all users.

 

Tried with curl command as:

curl --insecure -D- --show-error -u admin:pass -X POST --data '{"name":"clientuser","active":"true"}' -H "Content-Type: application/json" https://account.atlassian.net/rest/api/2/user?username=clientuser

 

but it saying user already exists

 

 

Gone through https://confluence.atlassian.com/jirakb/user-management-rest-api-changes-in-jira-cloud-858756548.html tried to use PUT, but saying method not available.

 

Thanks

2 answers

0 votes

Hello,

I guess, the users, you created, are not included in any group, which grants access to your site.

You can do it two ways:

1. Go to Product -> Product Access and enable the New users have access to this product. In this case new users will be added automatically to the default group for the product (existing users will not be added):

Screenshot 2019-03-08 at 09.58.50.png2. Execute another Rest Api request to add the created users to a group, which are presented in the Product -> Product Access screen

Hi

 

I have the same issue but I have already added the users to groups and i checked new users have access to the product but still Access site is greyed out

HI Alexey Matveev _cPrime_ I am not sure why are you telling everyone the same answer that the user needs to be added to the group.
Very often I have a user that I want to disable but I do not want to delete the user because we have a policy to keep the user disabled for 3 months and then delete the user.

The user is usually part of multiple groups and usually it has a confluence and JIRA Software license, sometimes also the Service desk license.

I just want to flip the switch "Has access on site" via API because the command is part of my off-boarding application.

Any ideas how to set the Active field to False by using PUT and this uri https://xxx.atlassian.net/rest/api/3/user?accountId=xxx ?

 

I would appreciate your help.

Suggest an answer

Log in or Sign up to answer
TAGS

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