title: Azure AD b2b "Read all users' basic profiles" permission
body: <p>I have delegated user permission <code>User.ReadBasic.All</code>.  In the <a href="https://developer.microsoft.com/en-us/graph/docs/concepts/permissions_reference#user-permissions" rel="nofollow noreferrer">documentation</a>, it states this</p>
  
  <blockquote>
    <p>"Allows the app to read a basic set of profile properties of other users in your organization on behalf of the signed-in user. This includes display name, first and last name, email address, open extensions and photo. Also allows the app to read the full profile of the signed-in user."</p>
  </blockquote>
  
  <p>How can I get all users with basic profiles?</p>
  
  <pre><code>var accessToken = authContext
      .AcquireTokenAsync(graphResourceId, new ClientCredential(clientId, secret))
      .Result
      .AccessToken;
  
  var graphserviceClient = new GraphServiceClient(
      new DelegateAuthenticationProvider(requestMessage =&gt; {
          requestMessage.Headers.Authorization = new AuthenticationHeaderValue("bearer", accessToken);
          return Task.FromResult(0);
      }));
  </code></pre>
  
  <p><strong>Can you please confirm my "Authority" URL is correct or not?</strong> </p>
  
  <pre><code>string authority = "https://login.microsoftonline.com/{tenantId}/common/oauth2/v2.0/token?&amp;response_type=code&amp;scope=openid%20profile%20User.Read%20User.ReadWrite%20User.ReadBasic.All";
  AuthenticationContext authContext = new AuthenticationContext(authority);
  var accessToken = authContext
      .AcquireTokenAsync(graphResourceId, new ClientCredential(clientId, secret))
      .Result
      .AccessToken;
  </code></pre>