Forums

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

groups rest api 2.0 endpoint

ciganma1
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!
June 22, 2018

 Is in the version 2.0  rest api an equivalent endpoint  for group management /groups ? 

4 answers

1 accepted

0 votes
Answer accepted
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2018

No, you need to write a plugin to manage user groups now. v1 was eccentric :)

IT Administrator July 23, 2018

So rather than providing an API like every other system I've come across, each user has to write their own plugin ... and v1 was eccentric?

Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2018

Not really, you need to write 1 plugin to expose a Rest endpoint to do whatever you want and yes, I know there is a special place in hell for me but I am happy that this endpoint was scraped.

It was a glaring security loophole :) I guess the gape was only visible to atlassian when it threatened their own cloud offerings.

richglazier October 1, 2018

@Danyal Iqbal, can you point me in the right direction on how to write my own API end point plug in, so I can programmatically create bitBucket users?

 

Thanks

Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2018
IT Administrator October 2, 2018

So I understand you saying that we need to write our own API to expose a REST endpoint.

My next question would be what that app is supposed to do for managing users. Is there some sort of internal API that in all my searching I haven't come across? Or should we be connecting directly to the database and figuring out which tables and links we should be changing? I haven't seen any documentation on that either.

richglazier October 2, 2018

^^ what he said

Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2018
ComponentAccessor.getUserUtil()

is a good starting point for the internals of usermanagement.

PLease stay away from the db. Nothing good will come out of it.

richglazier October 4, 2018

Thanks for the replies, you two. Very appreciated.

IT Administrator October 4, 2018

Oh, did I forget to put <joke> tags around the DB access comment?

The only reference I can see for ComponentAccessor.getUserUtil() is in reference to Jira, not Bitbucket.

I guess my bigger question is, where are we supposed to find the documentation on these functions? It all seems like pulling teeth, just a little info at a time - and only help from (presumably) volunteer community helpers - nothing from the people we pay the money to.

All this effort seems way beyond what someone just wanting to use an API would do. I wonder what other admins do? Switch to a competing tool that has an API?

Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2018

:D

+1 for an enlightening comment.

+1 for support request.

What a pleasent change of pace. You should create a support request and get an official response from the people who take your money. I am sure they can offer a nice paid plugin for the job:) but seriously, have you thought about other workarounds, like managing users in a separate user directory?

Just for the record, I completely agree with you.  As a system admin I need better documentation and not just better documentation, I need a better interface like GraphQL to interact with the application without pulling all my hair out:) Rest API's will  die out  before Atlassian.

1 vote
richglazier October 26, 2018

Can anyone from Atlassian comment on the BB Cloud API add user/group functionality?

0 votes
richglazier October 2, 2018

Thanks for the feedback Danyal and IT Admin. Your link, IT Admin, says in 2.0 you can no longer modify an existing BB user... but what about creating new accounts? Have you done that with API 2.0?

 

Thanks

IT Administrator October 2, 2018

No, there is limited read-only user information only.

richglazier October 5, 2018

boo :(

0 votes
IT Administrator July 22, 2018

Not according to this page

https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/#groups

 

But I'm very keen to figure out what to do now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events