We haven't installed any addon for Rest API and now we have to restrict all confluence spaces which are in public. So, for that our IT team asked to provide a Rest API Token. Could you please help me in getting this resolved if there is a way to restrict all confluence spaces from atlassian end or else how can I generate Token for that to get this done.
Waiting for your response. Appreciate your early response in advance.
You can try below, if it works for you.
If you are Admin of Confluence, please go to the Settings (gear ICON) on right site top.
then click on Space permission and you can restrict spaces to Users, Groups etc..
Vikram P
Hi @mohan_reddy
Please refer - Manage API tokens for your Atlassian account to know how to create an API token.
For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead.
If you are looking to remove space permissions, please refer - Remove a space permission
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kishan Sharma The link you mentioned to generate API Token are for user specific. This will not resolve my problem. I have to change all confluence spaces from public to private, Could you please suggest me how can I do that.
Thanks for your response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @mohan_reddy
If you are site admin, you can directly change the Global Permissions to disable anonymous access across your site.
Admin -> Global Permissions -> Go to the Anonymous access tab, click Edit, and uncheck Use Confluence. (Don’t forget to save changes.)
If you don't want to do that, you will have to create a Personal Access Token as a site admin who have Space Admin permission to all spaces in your site and then change the space permissions individually via REST API. You can refer example here.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.