Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add group privileges (for bitbucket v1.0) #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cgroschupp
Copy link
Contributor

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/

@ktrysmt ktrysmt changed the title Add group privileges Add group privileges for bitbucket v1.0 Jun 11, 2021
@ktrysmt ktrysmt changed the title Add group privileges for bitbucket v1.0 Add group privileges (for bitbucket v1.0) Jun 11, 2021
@ktrysmt
Copy link
Owner

ktrysmt commented Jun 11, 2021

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

@cgroschupp
Copy link
Contributor Author

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.

@ktrysmt
Copy link
Owner

ktrysmt commented Jun 21, 2021

That's sounds good. I understood. @cgroschupp

@cgroschupp
Copy link
Contributor Author

@ktrysmt rebase is done

@zahiar
Copy link
Contributor

zahiar commented Nov 19, 2021

@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 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants