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

Can I perform operation like create users, add users into groups etc in Confluence using APIs?

I am trying to create user, delete user, add user into groups, remove users from groups, create group and delete group using APIs available for Confluence. But I am not able to find any API for these operation in the official documentation of Atlassian. Please suggest me an option to perform these operations in Confluence. Also, please answer why Atlassian is not providing APIs for these operations in Confluence?

 

1 answer

@Sudhanshu Singh Rathore 

Welcome to the Atlassian community

You will find the documentation for the actions around groups and users at

Cloud

Groups https://developer.atlassian.com/cloud/confluence/rest/api-group-group/#api-api-group-get

Users https://developer.atlassian.com/cloud/confluence/rest/api-group-users/#api-group-users

On Premise

Groups https://docs.atlassian.com/ConfluenceServer/rest/7.9.1/#api/group

Users https://docs.atlassian.com/ConfluenceServer/rest/7.9.1/#api/user

 

However as you will see there are differences between what is offered in Cloud and On Premise. 

You may also want to look at Atlassian Crowd for your user management for on premise which gives you much greater control of your accounts and a full set of APIs. 
https://docs.atlassian.com/atlassian-crowd/4.2.0/REST/

 

You can also add your voice by voting for https://jira.atlassian.com/browse/CONFSERVER-56205

@Phill Fox 

Thanks for the guidance.

The specified document does not contain any API for the operations mentioned in the question for On Premise.

Also, we don't have Atlassian Crowd in place for the application. Only JIRA instance is installed. Can I make use of JIRA instance to perform these operations on Confluence?

As you say you have Jira and that does have the required APIs

Groups https://docs.atlassian.com/software/jira/docs/api/REST/8.13.6/#api/2/group
Users https://docs.atlassian.com/software/jira/docs/api/REST/8.13.6/#api/2/user

 

So if you use the user management in Jira and connect Confluence to it then you are certainly able to manage it that way. 

Please confirm if the process described in "Connecting Confluence to Jira applications for User Management" section in the link given below is the correct way to connect these two applications.

https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html

@Sudhanshu Singh Rathore 

Yes those are the right instructions. Make sure you select the correct version in the select list in the top-right corner in case there are any differences between versions. 

Thanks Phill. That is working for user management.

Do you have any idea about adding a user or group into space? I am not able to find any REST API for that.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...

204 views 2 13
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