Listing, showing, assigning, and removing orgniazationroles. Wraps GitHub Organization Roles API.
Additional APIs:
Requires authentication.
$roles = $client->organization()->organizationRoles()->all('acme');
Returns a counter and a list of organization roles in the organization.
Requires authentication.
$role = $client->organization()->organizationRoles()->show('acme', 123);
Returns a single organization role in the organization.
Requires authentication.
$users = $client->organization()->organizationRoles()->listTeamsWithRole('acme', 1);
Returns a list of teams with the role assigned to them.
Requires authentication.
$client->organization()->organizationRoles()->assignRoleToTeam('acme', 1, 'admin-user');
No content is returned.
Requires authentication.
$client->organization()->organizationRoles()->removeRoleFromTeam('acme', 1, 'admin-team');
No content is returned.
Requires authentication.
$client->organization()->organizationRoles()->removeAllRolesFromTeam('acme', 'admin-team');
No content is returned.
Requires authentication.
$users = $client->organization()->organizationRoles()->listUsersWithRole('acme', 1);
Returns a list of users with the role assigned to them.
Requires authentication.
$client->organization()->organizationRoles()->assignRoleToUser('acme', 1, 'admin-user');
No content is returned.
Requires authentication.
$client->organization()->organizationRoles()->removeRoleFromUser('acme', 1, 'admin-user');
No content is returned.
Requires authentication.
$client->organization()->organizationRoles()->removeAllRolesFromUser('acme', 'admin-user');
No content is returned.