Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API to add and remove the groups in Confluence permission

Vasanthakumar Velusamy February 13, 2023

I need to update the AD groups for list spaces in Confluence instance for granting permission and I am looking for rest API to achieve this. Could you please help me on the same?

2 answers

0 votes
oliver.wihler February 13, 2023

Have a look at the available Rest API end-points for Confluence CD:

https://docs.atlassian.com/ConfluenceServer/rest/8.0.3/

For example, you can get a list of all members of a group:

GET /rest/api/group/{groupName}/member

But yeah, the DC rest api not offer as much as the Cloud one.

0 votes
oliver.wihler February 13, 2023

Hi,

You may want to create an Atlassian "native" group if you want to use the built-in Rest API capabilities on Groups and Users

If you want to update AD groups automatically, then you should be looking at IdP provider API's such as https://developer.okta.com/docs/reference/api/groups/.

Vasanthakumar Velusamy February 13, 2023

Thanks @oliver.wihler  for your response. We are using Confluence Data center platform and we have the list AD groups which need to be updated in Confluence spaces.

I am looking for the way to achieve it by using the APIs. Let me know if there is any other ways to do.

oliver.wihler February 13, 2023

On Cloud you can add and remove space permissions. Is it this you were looking for?

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions/#api-group-space-permissions

Vasanthakumar Velusamy February 13, 2023

@oliver.wihler We are using Data center version not the cloud version

oliver.wihler February 14, 2023

@Vasanthakumar Velusamythe DC Rest API is documented here:

https://docs.atlassian.com/ConfluenceServer/rest/latest

What do you mean by "list" AD group? What space property do you want to update? Permissions? Page restrictions? Or something else?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events