Forums

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

How to add/delete/get permission info on specific users using the 2.0 API?

Janek Uchman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2019

It looks like these features used to be supported in the old 1.0 API, but are now deprecated. I tried to use them like the still supported groups and I received an error:

{"message": "Resource not found", "detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/"}

 I don't see any features on the 2.0 API that correlate to creation/deletion of users, or how to view what groups/roles a user has access to.

Any help would be greatly appreciated.

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2019

Hello @Janek Uchman,

As this page declares, groups endpoint of API v1 is still active until Atlassian Cloud Admin API is supported in API v2.

I just checked some functionality of the groups endpoint myself, and it worked fine. Can you double check the URLs, methods and headers you're making requests with? You can also just dump your request details here, and I'll do my best to help you sort it out.

Hope this helps.

Cheers,
Daniil

Janek Uchman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 22, 2019

Hi @Daniil Penkin 

Thanks for the response, but just to be clear the groups API is working fine, what I'm trying to do is create new users under a team, or delete users from a team. 

In the 1.0 API creating a user for a team would be:

/REST/API/1.0/ADMIN/USERS?NAME&PASSWORD&DISPLAYNAME&EMAILADDRESS&ADDTODEFAULTGROUP&NOTIFY

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events