# Jira REST API for project permissions returns wrong response for "Next Gen" projects

**URL:** <https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503>\
**Category:** Jira Cloud\
**Tags:** permissions, team-managed-projects, jira-cloud, rest-api\
**Created:** [March 8, 2022, 7:09am UTC](https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503 "2022-03-08T07:09:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeorgiV](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@GeorgiV](https://community.developer.atlassian.com/u/GeorgiV)\
**Post date:** [March 8, 2022, 7:09am UTC](https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503/1 "2022-03-08T07:09:22Z")

</div>

I’m trying to get the project permissions for a portal user with no access to given “next gen” project via REST API and expecting a response with “havePermission”:false, but the endpoint returns “true”.  
Is there any workaround to resolve the problem - how to get the correct project permissions for “next gen” portal users with REST call?

I’m using this endpoint:

“/rest/api/2/mypermissions?permissions=CREATE\_ISSUES&projectId={projectId}”

---

<div class="post-metadata">

**Author:** ![Dario\_B](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@Dario\_B](https://community.developer.atlassian.com/u/Dario_B)\
**Post date:** [March 8, 2022, 5:10pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503/2 "2022-03-08T17:10:54Z")

</div>

Hello @GeorgiV ,

I believe this is actually the same behavior described in: [JSDCLOUD-10417: Provide a REST API endpoint to retrieve permissions of users(including browse project permissions for JSM customers)](https://jira.atlassian.com/browse/JSDCLOUD-10417)

If this is the case, I can confirm that the issue is also present in Company managed (former “Classic”) projects, not only in Team managed (former “Next-Gen”) projects.

Can you kindly review above feature request and let me know if this is indeed the same issue?

For further details see also:

- [Problem with permissions endpoint "rest/api/3/permissions/project"](https://community.developer.atlassian.com/t/problem-with-permissions-endpoint-rest-api-3-permissions-project/56218)

Cheers,  
Dario

---

<div class="post-metadata">

**Author:** ![GeorgiV](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@GeorgiV](https://community.developer.atlassian.com/u/GeorgiV)\
**Post date:** [March 9, 2022, 7:07am UTC](https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503/3 "2022-03-09T07:07:28Z")

</div>

Hello @Dario_B,

Maybe it’s related to them, but in my case the project is set to \*\* Client added by agents and administrators \*\* and the endpoint “/ rest / api / 2 / mypermissions? Permissions = CREATE\_ISSUES & projectId = {projectId}” works correctly for “classic” company-managed projects.  
When I use this endpoint to manage the permissions of portal users without access to “Next-Gen” projects, that are not added by agents or administrators - it returns TRUE instead of FALSE

---

<div class="post-metadata">

**Author:** ![Dario\_B](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@Dario\_B](https://community.developer.atlassian.com/u/Dario_B)\
**Post date:** [March 9, 2022, 1:21pm UTC](https://community.developer.atlassian.com/t/jira-rest-api-for-project-permissions-returns-wrong-response-for-next-gen-projects/56503/4 "2022-03-09T13:21:25Z")

</div>

Hi @GeorgiV ,

Can you kindly check below points and let me know if my understanding is correct so that I can try to reproduce the issue on my test site:

1. Your JSM Company managed (Classic) Service Desk project access is set to: **Client added by agents and administrators** in `https://[NAME].atlassian.net/jira/servicedesk/projects/[PROJECT-KEY]/settings/customer-permissions`

2. For that project both endpoints are returning consistent results for the **CREATE\_ISSUES** permission. For example: they both return `false` for a user that does not have access and they both return `true` for a portal only customer.

3. Your Team managed (Next-Gen) Service Desk project is configured as “private”: “Only admins and people you add to the **Internal access** page can search for, view, and comment on this service project’s customer requests” in `https://[NAME].atlassian.net/jira/servicedesk/projects/[PROJECT-KEY]/settings/access`

4. The `mypermission` endpoint returns TRUE for **CREATE\_ISSUES** permission for a Jira user that does not have any access to the project as well as for Portal Only customers that do have access.

5. Nothing changes switching to the v3 endpoint `/rest/api/3/mypermissions`
