Hi Team,
Have a requirement to fetch Space-level and Page-level permissions in Confluence.
I have already tried the below APIs; however, they are not providing the required details:
Space Permissions:
https://{your-domain}/wiki/api/v2/spaces/{id}/permissions
Page Restrictions:
https://{your-domain}/wiki/rest/api/content/{id}/restriction
Requirement 1:
An AD group is associated with the Confluence space. When executing the Space Permissions API, I am able to retrieve the group details. However, I’m unable to identify whether the group is an external AD group or a native Confluence group.
Requirement 2:
If any permission is updated or deleted at the Space level, how can we track:
Requirement 3:
Similarly, if any permission is updated or deleted at the Page level, how can we track:
Hello @jaya krishna gonuguntla _CW_
Welcome to the Atlassian community.
Requirement 1
In Atlassian Cloud for Confluence there is no such thing as a user group that is native to just Confluence. User Groups are defined at the Organization level. To find out if a group was provisioned to your Organization or created locally within the Atlassian Cloud Organization would require access the the Organization APIs.
That endpoint requires the group ID. If you want to get all groups and parse through the results based on the group name then you would use this endpoint:
Requirement 2 and 3
You can get information about changes to Space permissions and Page restrictions from the Confluence Audit Log.
If you want to access the information with an API you can find information on that here:
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.