Which api of confluence permission is?

apathytz January 14, 2021

Which api of confluence permission is? I want to get the authorized user or group in the page, how can I get this data?

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2021

Hi @apathytz , just checing Confluence Java API and it looks like there are quite useful methods which can be invoked on Page (https://docs.atlassian.com/ConfluenceServer/javadoc/7.10.1/com/atlassian/confluence/pages/Page.html) object, like:

  • getContentPermissionSet

apathytz January 18, 2021

Is there a similar interface for rest api?

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2021

I think you can use this endpoint : https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-api-content-get and you can use expand attribute to require permissions info. So for getting read restrictions for users and groups, it can be like:

  • https://{yourdomain}.atlassian.net/wiki/rest/api/content/{pageid}?expand=restrictions.read.restrictions.user,restrictions.read.restrictions.group
    • yourdomain and pageid must be adjusted for your domain and page
apathytz January 19, 2021

thank you very much. This API is for obtaining page permissions. Is there an API for obtaining space permissions? For example, I want to get a certain space, who can create or delete documents, etc.

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2021

You can get details of Space permissions configuration using:

  • https://{yourdomain}.atlassian.net/wiki/rest/api/space/{spacekey}?expand=permissions
    • yourdomain and spacekey must be adjusted :)
Like Guy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events