Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Page access using credentials

Michael Sarafidis
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!
March 14, 2017
Hi,
We want to share some pages from our Confluence to our Site under members area. We do not want to be anonymous access because we do not want the URL to be shareable outside the member area. Thus we need to create a user that will have access to specific pages from different spaces (not the whole spaces). We also do not want the user to be able to change its personal settings (ex. password).
Finally, we do not want our members to know the user's credentials, thus we need to make a post request using the confluence API in order to access the pages.
Could you please tell us if all this is possible and also give us a hint of how to implement it?
Thanks in advance.

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2017

This isn't going to work the way you think it is, and @Jen Roberts instincts are right.

For a user to see a Confluence page, they must have read access to the space.  You need to set up the spaces so that they all have a public and private sections, so that your user can see the right pages, and then restrict all the private areas in any spaces you've let the user see.

If you don't use anonymous access, you'll need to have a user who can see the spaces and then public pages.  People logging in as that person will be able to modify the passwords and account settings.

So, on to your API suggestion - yes, that's the only way.  Have a read-only user, then write something that scrapes the pages you want to publish over REST and load them into another web-server as static pages (consider a regular refresh).

0 votes
Jen
Contributor
March 15, 2017

In my experience with the Confluence Cloud, this request would need to be done manually - meaning each page would need to be set - Restrictions/Access (any open Spaces would need to be set to Restrictive as to keep the Said User outside).  

I'll be following your question as to learn if other options are available!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events