com.atlassian.confluence.api.service.exceptions.PermissionException: User not permitted to view user

Abhinay
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!
June 24, 2024

 

I am seeing below errors while making a call using oauth bearer token on api's 

1. /wiki/rest/api/group/{group-id}
2. /wiki/rest/api/group/{group-id}/membersByGroupId

Oauth app has below permissions to access the data.
1. read:content-details:confluence
2. read:user:confluence
3. read:confluence-user
4. read:confluence-groups
5. read:group:confluence
6. read:user.property:confluence

Am I missing any required permission?

Errors are: 

{"statusCode":403,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"com.atlassian.confluence.api.service.exceptions.PermissionException: User not permitted to view user profiles"}

{"statusCode":403,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"com.atlassian.confluence.api.service.exceptions.PermissionException: Not allowed to search for groups"}

2 answers

0 votes
Luis Pellacani
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2024

Hey @Abhinay ,

Welcome to Atlassian Community.

 

Based on our documentation for both options, you already have the correct permissions granted. Since you are receiving errors when specifying a user group ID, can you try to request all users without an ID (/wiki/rest/api/group)?

 

In case that request returns the same 403 error further investigation will be required by our Developer Support team. You can reach them on the channel below:

 

Cheers,

Luis Pellacani

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2024

I'd check to see if the token works for any API call.  You are not getting authorized. 

Abhinay
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!
June 24, 2024

The other api calls such as listing spaces, listing pages, and blogs, content of page etc are working just fine with Bearer token. 

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