go-bitbucket icon indicating copy to clipboard operation
go-bitbucket copied to clipboard

Add group privileges (for bitbucket v1.0)

Open cgroschupp opened this issue 4 years ago • 5 comments

The group-privileges endpoints live in the deprecated Bitbucket Cloud REST API version 1. But there is no equivalent endpoint in 2.0, see more details on: https://support.atlassian.com/bitbucket-cloud/docs/group-privileges-endpoint/

cgroschupp avatar Jun 10 '21 11:06 cgroschupp

The go-bitbucket will not support bitbucket v1.

https://github.com/ktrysmt/go-bitbucket#support-bitbucket-api-v10-

Though operation codes about "ApiBaseURL" looks good, would you split the codes to apiBaseURL and privilege group if you agree. @cgroschupp

ktrysmt avatar Jun 11 '21 01:06 ktrysmt

Temporary support for limited 1.0 API resources

The 2.0 REST API will rely on the Atlassian Cloud Admin API for user and group management, but those API endpoints are not >yet available. Until the Atlassian platform services are fully available in Bitbucket we will continue to support these 1.0 REST >endpoints:

/1.0/groups /1.0/group-privileges /1.0/invitations /1.0/users/{accountname}/invitations

Especially the "group-privileges" endpoint is an important feature and I think this libary should support all cases for Bitbucket Cloud. When it is available in v2, i will change it.

cgroschupp avatar Jun 20 '21 06:06 cgroschupp

That's sounds good. I understood. @cgroschupp

ktrysmt avatar Jun 21 '21 03:06 ktrysmt

@ktrysmt rebase is done

cgroschupp avatar Jun 23 '21 14:06 cgroschupp

@ktrysmt any thoughts on getting this merged in? I think it will be pretty useful to have, plus I'll happily add support for groups themselves https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/#Overview since that is something I'm currently looking at.

I know they are deprecated v1.0 APIs but given how they were deprecated in 2018, and we're close to 2022, I don't think it's a priority for Atlassian to give us v2.0 equivalent APIs 😢

zahiar avatar Nov 19 '21 01:11 zahiar