Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.2 KB

group-privileges.md

File metadata and controls

51 lines (35 loc) · 1.2 KB

Group Privileges

Manages a group's repository permissions.

Prepare

$privileges = new Bitbucket\API\GroupPrivileges();
$privileges->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));

Get a list of privileged groups

$groups = $privileges->groups($account_name);

Get a list of privileged groups for a repository

$groups = $privileges->repository($account_name, $repo_slug);

Gets the privileges of a group on a repository.

$group = $privileges->group($account_name, $repo_slug, $group_owner, $group_slug);

Get a list of the repositories on which a particular privilege group appears.

$repos = $privileges->repositories($account_name, $group_owner, $group_slug);

Grant group privileges on a repository.

$privileges->grant($account_name, $repo_slug, $group_owner, $group_slug, 'read');

Delete group privileges from a repository

$privileges->delete($account_name, $repo_slug, $group_owner, $group_slug);

Related: