Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Which api of confluence permission is?

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

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

Is there a similar interface for rest api?

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

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.

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 :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

113 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you