Forums

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

Can we provide Jira project access to users using REST APIs?

Prasad_Biddika August 16, 2024

Hi, thanks for your help.

 

1)Can we provide Jira project access to users using APIs?

2)Can we revoke Jira project access to users using APIs

3)can we know the list of projects that a particular user has using REST APIs?

Please help with the same.

Thanks

2 answers

0 votes
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2024

Hi Prasad,

Welcome to Community,

Please check this : https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors/#api-group-project-role-actors

This should help you give access via project roles in Jira.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-group-projectsReturns all projects visible to the user)

Thank You,

Prachi

0 votes
Florian Bonniec
Community Champion
August 16, 2024

Hi @Prasad_Biddika 

User can use the REST API, by default.

If you want to block API usage, I guess you will need an app such as API Token, configure it to only allow API call using Token and block the one using the basic authentication.This app allow also you to manage active token and who can create tokens. It will be valid for the entire instance and not just a project.

 

Regards

prasad biddika
Contributor
August 18, 2024

@Florian Bonniec we want to provide jira projects access using Rest APIs is it possible?

Florian Bonniec
Community Champion
August 20, 2024

Hi

 

It will depends how you wan to manage permission, but you could add user to project role with teh REST api.

Jira 9.13.0 (atlassian.com)

 

Regards

Suggest an answer

Log in or Sign up to answer