We were trying to retrieve a Confluence page content programmatically using API.
For example, using python's atlassian library.
from atlassian import Confluence
confluence.cql("(title='Test Private Page')", start=0, limit=None, expand=None, include_archived_spaces=None, excerpt=None)
It would return empty results. API call would work for non-restricted contents.
Is there a way to do that?
Hello Dom,
If the cql() call is returning empty results for a restricted page, it's likely because the API user doesn't have permission to view it.
Make sure you're authenticated as a user who can actually see the page in the Confluence UI—if you can't see it there, the API won't return it either.
Regards,
Ziad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.