Forums

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

See if a group is used

Björn Annerskog
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!
September 28, 2023

Hi, how can i see if a group is used in permissions if I am not able to use SQL ?

 

Or how do i start using SQL for confluence

2 answers

0 votes
Andrii Maliuta
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.
October 1, 2023

Hello @Björn Annerskog ,

You can try to iterate over spaces and get each space permissions:

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions/#api-spaces-id-permissions-get

https://<SITE>.atlassian.net/wiki/api/v2/spaces/<SPACE_ID>/permissions

 the result will contain all group and their IDs:

"results": [
{
"id": "111111",
"principal": {
"type": "group",
"id": "aaa-d111-451d-aaaaaaaaa"
},
"operation": {
"key": "delete",
"targetType": "attachment"
}
},
{
"id": "2222222",
"principal": {
"type": "group",
"id": "asdasdasd-d845-45cc-asdasd-asdasd"
},
"operation": {
"key": "delete",
"targetType": "blogpost"
}
}
]

 

Then by the group ID, you can check if the group  you need is present in a space:

https://<SITE>.atlassian.net/wiki/rest/api/group/confluence-users
0 votes
Kian Stack Mumo Systems
Community Champion
September 28, 2023

@Björn Annerskog

 

 

It looks like finding the permissions isn't really possible without manual work - see this feature suggestion. You could try using rest api to query each space permissions and find it that way.

Suggest an answer

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

Atlassian Community Events