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
Hello @Björn Annerskog ,
You can try to iterate over spaces and get each space permissions:
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.