Forums

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

A service account wants to access a space but gets a 403 error

Steven Chau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2026

I created a service account in atlassion admin and added it to confluence admin and user groups. ALso gave it access to specific spaces in confluence. But when accessing these space it gave an error message: {"statusCode":403,"message":"com.atlassian.confluence.mvc.rest.common.exception.StacklessResponseStatusException: 403 FORBIDDEN \"Request rejected because caller cannot access Confluence\""}
HTTP 403

2 answers

1 vote
Gerusa Lobo
May 22, 2026

Hi Steve,

At first the Atlassian service account only works in api with url starting with api.atlassian.com.

In api documents its shows as OAuthy2 connection but it will be used for all scoped tokens

Besides that You could check the API Token Scope Permission.

I found out that the granular scope of the API token don't work properly and a few scopes could be missing in documentation.

So, I recommend using the classic scope to read or write.

And in the features, like assets, that don't have classic scope, you could select all granular items for read or for write simulating the classic behavior.

Regards.

Steven Chau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2026

Thanks, we'll try changing the url!

 

Gerusa Lobo
May 22, 2026
0 votes
Trudy Claspill
Community Champion
May 22, 2026

Hello @Steven Chau 

Welcome to the Atlassian community.

How did you create this service account? Did you create it like a "normal" user account that can login to the UI? Did you create it though the Admin hub through Directory > Service Accounts? I think from your description you mean the latter.

Are you trying to use this account to programmatically access Confluence? If so, how are you authenticating the account? Did you generate a token for the account? Is it an OAuth token or an API token? Can you provide more details about how you are trying to use the account?

Steven Chau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2026

Hi, thanks for your reply.

I created the Service Account through the Admin hub in Service Accounts with an API-token.

My colleague used commands with these urls:

"https://<tenant>.atlassian.net/wiki/rest/api/user/current"
"https://<tenant>.atlassian.net/wiki/rest/api/space/TC"

And got the 403 errors.

Also it's strange that I added de Service account to the user and admin groups for confluence, but I can't find the account in the Confluence groups under users. Not sure if that's related to the problem.

Sorry for my non-technical description of the problem. Normally I do more business analyst work on the user side of applications.

 

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