-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
Component/s: Operations - Policies API
-
None
-
1
-
Severity 3 - Minor
Issue Summary
Unable to retrieve team policy information (alert and notification) via API and terraform even though the user is a member of the team and listed as an admin of the team. The same team admin is able to create alert and notification via API and UI only when retrieving the policy information via API and terraform.
https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/teams/{teamId}/policies/{policyId}
https://api.atlassian.com/jsm/ops/api/{cloudId}/v1/teams/{teamId}/policies?type={type}
Steps to Reproduce
- Create a user with just JSM agent access
- Add the user to any team that has operations enabled.
- Then add the user as a team-admin
- Generate an API token for the user and use that credentials to any of the above mentioned API token.
- Notice that you will get an error:
{
"errors": [
{ "title": "You are not authorized to see team details." }
]
}
Expected Results
The team admin must be able to retrieve the information via API and Terraform
Actual Results
Currently the error is being returned when attempting to fetch the policy information.
Workaround:
Grant them Operations global admin and that should allow the user to perform the operation.