Forums

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

How can i create Rest API Token (User Token) in confluence cloud?

mohan_reddy August 18, 2022

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.

2 answers

1 vote
vikram
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.
August 24, 2022

@mohan_reddy 

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 

1 vote
Kishan Sharma
Community Champion
August 18, 2022

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.

mohan_reddy August 19, 2022

@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.

Kishan Sharma
Community Champion
August 26, 2022

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events