title: How to get access token for Google APIs without a browser redirection
body: <p>I wanted to provision users to a Google. Hence i have following <a href="https://developers.google.com/admin-sdk/directory/v1/guides/manage-users" rel="nofollow">Google admin sdk</a> to achieve that.</p>
  
  <p>But requesting authorization for APIs i don't have ability to do a browser redirect and ask for login and consent directly from user.</p>
  
  <p>What I wanted to have is, the when admin create a new user that user should be created using company's IdP and that IdP would take caring creating a google account for new user too.</p>
  
  <p>I have followed <a href="https://developers.google.com/accounts/docs/OAuth2" rel="nofollow">this</a> which explains different scenarios to get access token, but i have noticed there airn't any scenario which is similar to password\resource_owner grant type which is match for my case.</p>
  
  <p>Is there a way I can get access token for without a browser redirection? Or is there any workaround? (<a href="https://support.google.com/a/answer/106368?hl=en" rel="nofollow">Google Apps Directory Sync</a> isn't a solution since it's support ldap only, but i'm looking to create like that for our IdP)</p>
  
  <p>Thanks in advance.</p>