NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 394 forks source link

Implemented ability to create service accounts which was introduced i… #689

Closed vmlrodrigues closed 3 months ago

vmlrodrigues commented 3 months ago

Implemented ability to create service accounts which was introduced in GitLab v16.1. This type of user does not take up a license seat and can only be created through the API. Also implemented the ability to create, rotate and revoke personal access tokens as these can also not be created through the GitLab web UI for service accounts.

I've only tested these new methods on Self-managed GitLab. The Gitlab.create_service_account method will only work on Self-managed and service accounts need to be created in the context of a group on GitLab.com.