diff options
Diffstat (limited to 'lib/bitbucket_server/client.rb')
-rw-r--r-- | lib/bitbucket_server/client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bitbucket_server/client.rb b/lib/bitbucket_server/client.rb index 8e84afe51d7..432928b0591 100644 --- a/lib/bitbucket_server/client.rb +++ b/lib/bitbucket_server/client.rb @@ -29,6 +29,11 @@ module BitbucketServer get_collection(path, :repo, page_offset: page_offset, limit: limit) end + def users(project_key, page_offset: 0, limit: nil) + path = "/projects/#{project_key}/permissions/users" + get_collection(path, :user, page_offset: page_offset, limit: limit) + end + def create_branch(project_key, repo, branch_name, sha) payload = { name: branch_name, |