Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I am updating permission scheme through rest api call but i getting 403 forbidden error

Sneha A S
Contributor
November 22, 2019

int schemeId=10021
def resultGroupb = put("/rest/api/2/permissionscheme/${schemeId}")

.header('Content-Type', 'application/json')
.body([

"permissions": [
[
"holder": [
"parameter": "Oracle Capacity",
"type": "group"
],
"permission": "ADMINISTER_PROJECTS"
]
],
"name": "Example permission scheme",
"description": "description"


]).asString()

1 answer

1 accepted

0 votes
Answer accepted
Nir Haimov
Community Champion
November 24, 2019

403 usually means you have no permission to do that change.

Do you have permission to change schemes through the UI?

Sneha A S
Contributor
November 24, 2019

I am running Rest API call in scriptlistener

Sneha A S
Contributor
November 24, 2019

I don't know how to do with UI

Nir Haimov
Community Champion
November 25, 2019

You can follow this guide, how to do it form the UI

https://confluence.atlassian.com/adminjiracloud/managing-project-permissions-776636362.html

General tip, know how the app work from the UI, than go for API

Like Sneha A S likes this

Suggest an answer

Log in or Sign up to answer