xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.43k stars 961 forks source link

Add ListServiceAccounts function to list all service accounts #2012

Closed Atoms closed 2 months ago

Atoms commented 2 months ago

First try to contribute to this awesome project.

Implementing ListServiceAccounts from https://docs.gitlab.com/ee/api/user_service_accounts.html#list-all-service-account-users

this is pretty straight forward implementation, only once concern i have, as GroupsService also has same functionality, but just for group service accounts. Therefore reused ListServiceAccountOptions as they are same. If i would change this, then it could break already existing implementations.

this could fix: https://github.com/xanzy/go-gitlab/issues/2011

svanharmelen commented 2 months ago

I'm super busy lately... Will try to have a look later this week!