Forums

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

Need user-context authentication for anonymous users to respect permission

Mohamed Amine Haouas
February 24, 2026

I'm working with the atlassian-connect-spring-boot framework and running into an issue with how anonymous users are handled when making api requests to confluence

right now, for anonymous users (no account ID), we use authenticatedAsAddon(), which uses app-level permissions

When we fetch using the v2 REST API like (/api/v2/spaces/) for example, app-level authentication returns all spaces the app can access, not just the spaces that anonymous users have permission to view

This forces us to manually check permissions for each space afterward, which adds extra API calls and latency

We need a way to make API requests with user-context authentication for anonymous users so that API results are already filtered 

Is there a supported way to make user-context requests for anonymous users?

1 answer

1 accepted

2 votes
Answer accepted
Marc -Devoteam-
Community Champion
February 24, 2026

Hi @Mohamed Amine Haouas 

Welcome to the community.

Based on the available API endpoints that could serve this, you have endpoints:

  • /wiki/rest/api/space/{spaceKey}
  •  /wiki/rest/api/space/{spaceId}/permissions

But I don't think they can server your purpose.

You should better revert your question to the developer community, see; https://community.developer.atlassian.com/ 

Mohamed Amine Haouas
February 24, 2026

Thanks a lot @Marc -Devoteam- 

Marc -Devoteam-
Community Champion
February 24, 2026

Hi @Mohamed Amine Haouas 

Please accept my answer as a solution, if my answer helped to solve or provide a workaround to your request.

This will help other community member trying to solve the same or provide them with a work around

P.S. If the answer is very valuable to you, please share some kudos.

Suggest an answer

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

Atlassian Community Events