Fetch permissions for the currently authenticated account.
$permissions = new Bitbucket\API\User\Permissions();
$permissions->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));
$permissions->teams();
$permissions->repositories();