<div dir="ltr">Also I see a checkbox when creating a new oauth consumer for your account for team here:<br><a href="https://bitbucket.org/account/user/bdbaddog/oauth-consumers/new">https://bitbucket.org/account/user/bdbaddog/oauth-consumers/new</a><br><br><ul class="gmail-column-list"><li class="gmail-column-list--item">
    <h4 class="gmail-column-list--heading">
      Team membership
    </h4>
    <ul class="gmail-column-list--sublist"><li class="gmail-column-list--subitem">
        
  <input id="gmail-scope-team" name="scope" value="team" type="checkbox">
  <label for="scope-team">Read</label>
      </li><li class="gmail-column-list--subitem">
        
  <input id="gmail-scope-team-write" name="scope" value="team:write" type="checkbox">
  <label for="scope-team-write">Write</label>
      </li></ul>
  </li></ul></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 10:03 PM, Bill Deegan <span dir="ltr"><<a href="mailto:bill@baddogconsulting.com" target="_blank">bill@baddogconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Craig,<br><br></div>It's curious that it needs that.<br><br></div>From the docs:<br><br><code>team</code>
      <p>Grants the ability to get a list of teams of which the current user is a member. This is covered by the teams endpoint.</p>
       <ul><li>information about all the groups and teams I am a member or admin of</li></ul><p>(<a href="https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html" target="_blank">https://confluence.atlassian.<wbr>com/bitbucket/oauth-on-<wbr>bitbucket-cloud-238027431.html</a><wbr>)</p><p>Looks like this line is trying to query for what teams the user is a member of...</p><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt">orgs = <span style="color:rgb(148,85,141)">self</span>.get(c, <span style="color:rgb(0,128,0);font-weight:bold">'/teams?role=member'</span>)<br><br><a href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/www/oauth2.py#L377" target="_blank">https://github.com/buildbot/<wbr>buildbot/blob/master/master/<wbr>buildbot/www/oauth2.py#L377</a><br><br></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt">If there's a way to wrap that to handle the error you're seeing and continue?<br><br></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt">Is your user a member of a team on bitbucket?<span class="HOEnZb"><font color="#888888"><br></font></span></pre><span class="HOEnZb"><font color="#888888"><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt">-Bill<br></pre></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 8:33 PM, Craig Rodrigues <span dir="ltr"><<a href="mailto:rodrigc@crodrigues.org" target="_blank">rodrigc@crodrigues.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am using <a href="http://bitbucket.org" target="_blank">bitbucket.org</a><div><br></div><div>--</div><div>Craig</div></div><div class="m_-8296453105483731420HOEnZb"><div class="m_-8296453105483731420h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 8:30 PM, Bill Deegan <span dir="ltr"><<a href="mailto:bill@baddogconsulting.com" target="_blank">bill@baddogconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Is this for <a href="http://bitbucket.org" target="_blank">bitbucket.org</a>, or the bitbucket server?<br><br></div>-Bill<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8296453105483731420m_8729737124114038190h5">On Wed, Jun 28, 2017 at 3:38 PM, Craig Rodrigues <span dir="ltr"><<a href="mailto:rodrigc@crodrigues.org" target="_blank">rodrigc@crodrigues.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8296453105483731420m_8729737124114038190h5"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I am trying to test BitbucketAuth, and am running into some problems.<br><br></div>I followed the instructions at:<br><br><a href="http://docs.buildbot.net/latest/manual/cfg-www.html#authentication-plugins" target="_blank">http://docs.buildbot.net/lates<wbr>t/manual/cfg-www.html#authenti<wbr>cation-plugins</a><br><br></div>and set up my Bitbucket account to authorize my Bitbucket instance.<br></div>I took my client id and client secret and put it in my master.cfg:<br><br>c['www'] = dict(port=8010,<br>    auth=util.BitbucketAuth("mycli<wbr>entid", "myclientsecret"),<br>    plugins=dict(waterfall_view={}<wbr>, console_view={}))<br><br></div><div>From buildbot, I was able to Log into Bitbucket,<br></div><div>but then it doesn't work.  After some debugging, I<br>found this message is coming back from Bitbucket:<br><br>{'type': 'error', 'error': {'message': 'Your credentials lack one or more required privilege scopes.', 'detail': {'granted': ['pullrequest', 'account'], 'required': ['team']}}}<br><br></div><div>Does anyone know how to set the "team" privilege scope?<br><br></div><div>I'm not familiar with the Bitbucket UI so don't know where to set it<br></div><div>--<br></div>Craig<br></div>
<br></div></div>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mai<wbr>lman/listinfo/users</a><br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>