Hi,
We have a problem with the “rest/api/3/permissions/project” endpoint.
Using this python snippet:
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps( {
"permissions": [
"BROWSE_PROJECTS"
]
} )
response = requests.request(
"POST",
url,
data=payload,
headers=headers,
auth=auth
)
we get this response {"projects": [{"id": 10001, "key": "ITSAMPLE"}, {"id": 10061, "key": "TC67"}, {"id": 10062, "key": "TC68"}, {"id": 10063, "key": "TC70"}, {"id": 10064, "key": "TC71"}, {"id": 10065, "key": "TC72"}, {"id": 10066, "key": "TC73"}, {"id": 10067, "key": "TC74"}]}
and the problem is that a lot of projects are missing. For example: if we perform an ordinary request to /rest/api/3/mypermissions?permissions=BROWSE_PROJECTS&projectId=10054 we get this response:
{
permissions: {
BROWSE_PROJECTS: {
id: "10",
key: "BROWSE_PROJECTS",
name: "Browse Projects",
type: "PROJECT",
description: "Ability to browse projects and the issues within them.",
havePermission: true,
}
}
}
which clearly states that havePermission field is true, but in the bulk request - the project is missing.
Is there a problem with this endpoint? Thanks in advance.
Kind Regards,
Philip