Forums

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

How to reliably check if current user is a space admin in Forge app?

P Shreekar shenoy June 23, 2025

Hi everyone,

I'm working on a Forge app for Confluence Cloud and need to check whether the current user is a space admin for a given space. I tried using the "/wiki/rest/api/space/{spaceKey}/permission" endpoint with asApp() but it always returns a 401 or 403 — even when tested via Postman using a valid app token. It looks like this endpoint is simply not accessible to Forge apps.

I also tried checking if the user belongs to any admin-related groups like confluence-administrators, org-admins but that didn’t help either — group membership info is not consistently exposed or reliable in the API responses.

Is there any better, supported way to determine space admin rights from a Forge app? Just want to be sure I’m not missing something obvious.

Thanks!

1 answer

0 votes
Vishalakshi Narayana Swamy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2025

Hi @P Shreekar shenoy

Welcome to Atlassian community!

From the problem summary, I understand that you are working on a forge app to retrieve the space admin permissions.

Usually the 401 or 403 errors are related to authentication, you can refer to more information about retrieving space permissions via API here https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions/#api-spaces-id-permissions-get.

However, since this is related to the forge app you can raise a support request with our Developers directly here: https://developer.atlassian.com/support.

Hope this helps!

Best Regards,

Vishalakshi Narayanaswamy 

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