Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,622
Community Members
 
Community Events
165
Community Groups

How to get the Necessary information from confluence server webhook payload

I am trying to connect my app to Confluence server through their webhook api.After Connection the payload looks something like this 

{
  "timestamp": 1650356000431,
  "event": "page_created",
  "userKey": "xxxxxxxxxxxxxxxxxxxxx",
  "page": {
    "id": xxxxxx
  }
}

Now this event is for page creation .similarly i am listening for comment events,page events and space events .Now how can i get other informations like page title , space name etc from these ids and how can i also check whether the given user have the necessary authority to see this payload   

1 answer

0 votes

Hi @Kshitij Katiyar 
I hope you are doing well.

You can get more details about page and users by using the Confluence REST API.

I don't think there's a public (supported) API to check if a user can read a specific content.

For that purpose you may use Gatekeeper's internal APIs, such as the below:

GET
<Confluence_Base_URL>/plugins/gatekeeper-plugin/who-can-view/evaluate.action?spaceKey=<spacekey>&pageId=<pageid>&hideAnonymous=false&ignoreRestrictions=false&start=0&count=10&filter=<username>

 

 

I hope that helps.

Kind regards,
Thiago Masutti

Suggest an answer

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

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

792 views 6 21
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