# Unable to DELETE space permissions through AP (error 403)

**URL:** <https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593>\
**Category:** Confluence Cloud\
**Tags:** authentication, permissions, cloud, javascript-api, rest-api\
**Created:** [November 11, 2021, 2:53pm UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593 "2021-11-11T14:53:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FirasMkaouar](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@FirasMkaouar](https://community.developer.atlassian.com/u/FirasMkaouar)\
**Post date:** [November 11, 2021, 2:53pm UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593/1 "2021-11-11T14:53:09Z")

</div>

Hi everyone!

For one of our apps, we want to manage space permissions, we encountered the following issue when using the below [endpoint](https://developer.atlassian.com/cloud/confluence/rest/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-id-delete), through AP :

**DELETE /wiki/rest/api/space/{spaceKey}/permission/{id}**

We are getting a 403 forbidden error code,  
_Type: Status Report_  
_Message: Request not in an authorized API scope_  
_Description: The server understood the request but refuses to authorize it._

The same request is successful when using normal authentication in Postman.

We believe that there is an **authorization issue for AP** , regarding this particular endpoint.

Thank you for your help  
Cheers!

---

<div class="post-metadata">

**Author:** ![marc](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/marc/32/39047_2.png) [@marc](https://community.developer.atlassian.com/u/marc)\
**Post date:** [November 11, 2021, 3:23pm UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593/2 "2021-11-11T15:23:36Z")

</div>

@FirasMkaouar That is the intended and documented behaviour:

> Connect apps cannot access this REST resource.

as described in your link.

---

<div class="post-metadata">

**Author:** ![FirasMkaouar](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@FirasMkaouar](https://community.developer.atlassian.com/u/FirasMkaouar)\
**Post date:** [November 12, 2021, 11:35am UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593/3 "2021-11-12T11:35:18Z")

</div>

@marc thank you for your prompt reply, you are right!  
That is confusing as this [API](https://developer.atlassian.com/cloud/confluence/rest/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-custom-content-post) allows connect apps to add permissions but is there a way to remove permissions?

---

<div class="post-metadata">

**Author:** ![GerbenHeinen](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@GerbenHeinen](https://community.developer.atlassian.com/u/GerbenHeinen)\
**Post date:** [July 3, 2023, 12:11pm UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593/4 "2023-07-03T12:11:39Z")

</div>

did you find out how to remove permissions through the cloud api of confluence?

Do you know how to get the permission id, which is needed according to the API?  
[The Confluence Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-id-delete)
