How can I search for a Page in Confluence with the page ID

Jakob Glenz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2022

I want to publish a version of my confluence site into the public version.

Somehow I receive an error that one page with the ID 192906679 cannot be published due to different data which is on this page. 

Looking up for this page, I cannot found it in my confluence site.

So, how can I search for a confluence page with an ID?

2 answers

0 votes
Michiel S. December 8, 2023

I think the easiest way would be to open a page you are allowed to view and go to the "Advanced details > Page Information" menu option.

You now have the URL you require to insert a pageId and can replace the ID with the one you want to look up.

Should look something like this:

https://CONFLUENCE_BASEURL/wiki/pages/viewinfo.action?pageId=

Even when you don't have permission to view this page, you will probably be able to see the space the page is in (unless you don't have that permission either) and you can take it from there.

 

Anthony Sylvester February 27, 2024

Did not work :(

Michiel S. February 28, 2024

Can you provide some more details @Anthony Sylvester?

What didn't work, what did you try, what URL did you try, was it on server/dc/cloud, etc.?

Currently, it is not clear to me why it would not work for you because I don't have enough information.

0 votes
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2022

Hi @Jakob Glenz 

You can use the REST API to find the page.

 

Just add this url to your browser after updating the variable base on your env.

 

CONFLUENCE_BASEURL/rest/api/content/PAGE_ID

 

It will return a json and you will be able to find the title of the page and the space the page is in.

 

Regards

Michiel S. December 8, 2023

Thanks. I noticed it is impossible to use this method when the page is restricted.

I just tried that method and got

{
"statusCode": 403,
"data": {
"authorized": false,
"valid": false,
"errors": [
{
"message": {
"key": "confluence.user.view.permissions.on.entity",
"translation": "User **id** does not have view permissions on entity page: **pageid** v.2",
"args": []
}
}
],
"successful": false
},
"message": "com.atlassian.confluence.api.service.exceptions.PermissionException: User **id** does not have view permissions on entity page: **pageid** v.2"
}

So this does not help me even though I am site and global admin, I am still not even permitted to know in which space the page is, or what the title is.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events