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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Possible to use PowerShell to talk to Confluence? Can't auth - 403

I'm a PowerShell afficionado and I've installed module 'ConfluencePS' from PowerShell gallery, for the purpose of talking to our Atlassian Cloud environment - Confluence and Jira.

I'd love to be able to programmatically get the # of licenses we have at any one time, so I can notify colleagues, etc. 

I swear that I used to be able to authenticate to our Atlassian via this method, but over the last year or so, the authentication fails, resulting in a 403 Forbidden.

Again, using module ConfluencePS in PowerShell, I'm running commands like this:

$SpaceKey = "OurSpaceIdentifier"
$BaseURI = ""
Set-ConfluenceInfo -BaseURI $BaseURI

I'm storing $creds in a variable, based on my login username (my full email address) and prompting to enter my password and storing that using a PowerShell method 'ConvertFrom-SecureString' and then writing that out to a file, which I then read in whenever I need to authenticate.  It's the method that (I swear) worked in the past.

Anyway, when I run the following command, I get a '403 Forbidden':

Get-ConfluencePage -Title 'Title of a page within the space' -SpaceKey $SpaceKey -Credential $creds

WARNING: Confluence returned HTTP error 403 - Forbidden
Invoke-Method : com.atlassian.confluence.api.service.exceptions.PermissionException: Parent page view is restricted

Is it still possible to authenticate against these products using scripted languages like this?

1 answer

Hi Daniel. 

In your case it seems that the parent page has restrictions so that you are not able to access it. Restrictions are inherited.


I just upgraded to the newest confluence version on my confluence server and now I am not able to connect. I get a 401 error message. It may be because REST api for confluence no longer accepts basic auth.. 


Best Regards Tine Benmalek

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events