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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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,570,795
Community Members
 
Community Events
188
Community Groups

How remove anonymous access from all Confluence spaces

Hi,

We have hundreds of spaces in Confluence which have read-only access enabled for anonymous.

We want to remove anonymous access from all such Conflunece space. Its a long task to open all such spaces one by one and remove the anonymous access. 

Is there any easy way in Confluence where I can remove all the anonymous permission from all the spaces in one go. Any CLI option or database command. 

Any help will be appreciated.

 

Thanks

 

1 answer

1 accepted

3 votes
Answer accepted
Prakhar Srivastav _Appfire_
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.
Feb 11, 2019

@sanan sanan

You can stop anonymous access from global configuration. It will stop anonymous access to all your Confluence Spaces.

Go to global permission and deselect anonymous access.

 

Regards

Prakhar

Hi Prakhar,

I have already removedthe the entry for anonymous from the global permissions. new spaces will not get any anonymous access by default now. 

but my quest is about how to remove the anonymous access from the existing spaces in any easy way. I want to avoid opening permissions on each and every space and remove the anonymous access. There are hundreds of such spaces..

 

Regards

Prakhar Srivastav _Appfire_
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.
Feb 11, 2019

Hi @sanan sanan

Global Permission will take preference over space level permission. What I mean is if you have removed anonymous access from Global Permission then space level anonymous access are of no use and preference will be given to global level. So anonymous user will not be able to access spaces.

Still if you want to try CLI and run command to change the permission at individual space level then you can try bobswift confluence cli. Below is the link for the command reference :

https://bobswift.atlassian.net/wiki/spaces/CSOAP/pages/10584068/Reference#Reference-removePermissions

 

Regards

Prakhar

OK..I got it now.

After removing the anonymous access from the global permissions, I did not check the spaces. I can see now that no space has anonymous access enabled.

This worked.

 

Thanks for your help, Prakhar.

Have a nice day.

 

Regards

Prakhar Srivastav _Appfire_
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.
Feb 11, 2019

Hi @sanan sanan


You are welcome! If you feel like my answer helped you, kindly mark my answer as accepted.

 

Regards

Prakhar

Hi Prakhar,

 

unfortunately the solution you suggested worked only as I expected earlier. It only takes affect for the new spaces created. 

it does not supersede the anonymous permission given on the older spaces. surprisingly it does mention as below on the permission page of the older spaces

 

Anonymous users can't view this space because global anonymous 'Use Confluence' permission is currently turned off. 
Go to global permissions to grant anonymous users permission to use Confluence.

 

but it does not do as it says. an anonymous user can still see the space. and to me it seems quite a bug in Confluence.

 

So I really need to remove all the view permissions for the existing spaces for anonymous 

do you know any way to do this.?

 

Regards

Prakhar Srivastav _Appfire_
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.
Feb 12, 2019

Hi @sanan sanan

This is very strange and may be you are missing something here. I will suggest you to check with Atlassian as well.

On the other hand if you want CLI to run for all the spaces then you can explore Bobswift CLI for Confluence. Here is the reference to the action :

https://bobswift.atlassian.net/wiki/spaces/CSOAP/pages/10584068/Reference#Reference-removePermissions

Regards

Prakhar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events