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,365,056
Community Members
 
Community Events
168
Community Groups

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

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

@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 

0 votes
Kishan Sharma Community Leader Aug 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.

@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 Leader Aug 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
Site Admin
TAGS

Atlassian Community Events