Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,615
Community Members
 
Community Events
176
Community Groups

Can I change customer permissions of a JIRA project via an API call?

Edited

Hi,

I want to change the customer permissions on a JIRA service desk project via an API call. Is it possible?img.pngThe default behavior is that whenever you a new project, anyone with an account on https://yourdomain.atlassian.net will have an access on the portal and can send requests to the projects.

I want that whenever I create a new project, its permissions should be set to `Customers my team adds to the project` by default or at least I could change it with a REST api call. Is there some way to achieve this?

1 answer

1 accepted

0 votes
Answer accepted

Hello @Stakater SRE _ 1,

Thank you for reaching out to Atlassian Community!

When creating a project in Service Desk, by default it should be set as "Customers my team adds to the project", but this only happens on a Standard Jira site.

I tested here both on a Free and Standard Jira site and created a next-gen and a classic project. On the Free site, customer permissions are set as "Anyone with an account" for all new projects. On Standard sites, the permission is set to "Customers my team adds to the project".

There is a bug where I reported this issue a while ago:

Please, click on "This affects my team" and also watch to receive updates about the bug.

Regarding the API, there is no endpoint that allows changing customer permissions.

Regards,
Angélica

As you mentioned, the official api don't mentions any such endpoint that provides this support. However, I found this endpoints that can help us change the project permission with the api call.

EndPoint: https://yourdomain.atlassian.net/rest/servicedesk/1/servicedesk/{projectIdOrprojectKey}/settings/requestsecurity

Like # people like this

Hi @Stakater SRE _ 1 

Hope you are well.

Can you please advise on how you updated the project permissions with the above API?

I am trying to set the "serviceDeskIpenAccess" to "true".

Is there a POST or a PUT to this API?

Regards,

Nawaaz

Like owen.klan likes this

Hi Nawaaz,

To change the 'Who can access the portal' permissions detailed in this post, it is a POST request to 

rest/servicedesk/1/servicedesk/{JiraProjectKey}/settings/requestsecurity with a body of:
{
"serviceDeskPublicSignup": false,
"serviceDeskOpenAccess": false
}
Hope this helps

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS

Atlassian Community Events