Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:42:37+00:00 2026-06-11T00:42:37+00:00

I have been looking around for a while now and I’m not able to

  • 0

I have been looking around for a while now and I’m not able to figure this out myself. Actually I feel very confused and lost in the google api docs 🙂

There are two things I need to do.

  1. Sync users from a google apps account and store in my own db.
  2. Let users login using their google apps accounts if already synced to db.

I managed to get this working using the contacts api and oauth2 using the gdata python library. But the problem is there is a lot that needs to be configured in the google api console (redirect url, js origin) for this to work. It just does not seam like the simplest way to do it since the user/client would have to do this by him/her self. How do other sites solve the google apps login? I have also been looking at openid but I’m not sure (1) can be solved using this.

Anyone who has done this before and know which approach is preferred or have any suggestions?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:42:38+00:00Added an answer on June 11, 2026 at 12:42 am

    Why do you need to pre-sync the list of users? Why not just allow users to login, and dynamically create the user in your DB based on which users login?

    If you really need to sync users:

    Syncing users should be done with the Google Apps Provisioning API, rather than the Contacts API.

    Are you building an installed application (on your server somewhere), or a web application which will allow the domain admin from multiple sites to visit and grant access?

    If it’s an installed application (on your server)– then as long as you need only read-only access to grab users from Google Apps to another system, it’s fairly simple.

    Domain admin needs to do:

    1) Visit:

    https://www.google.com/a/cpanel/(YOUR DOMAIN NAME)/ManageOauthClients
    

    Grant access for a client name that’s the same as (YOUR DOMAIN NAME) to the scope:

    https://apps-apis.google.com/a/feeds/user/#readonly 
    

    2) Grab your domain consumer key/secret, and make sure it’s enabled. Grab from here:

    https://www.google.com/a/cpanel/(YOUR DOMAIN NAME)/SetupOAuth
    

    Developer needs to do:

    You then need to use 2-legged OAuth 1.0 with that consumer key and secret to access. You can try it out by using the OAuth 1.0 playground. In the playground, don’t touch anything in section #1 and #3. Just use section #2 to choose HMAC_SHA1 as the signature method, and supply your key (which is the DOMAIN NAME) and secret in those fields. In section #6, specify the URL you’re going to request, which will be:

    https://apps-apis.google.com/a/feeds/(YOUR DOMAIN NAME)/user/2.0
    

    And hit execute. Note the OAuth 1.0 playground is not hosted on an SSL-enabled URL — so you might want to do this on a test domain when trying it out, and reset the domain secret after testing.

    Steps #1 and #2 should be fairly easy for a domain admin to follow if given the appropriate instructions. The only way to make it easier would be to host an application on the Google Apps Marketplace. This gives a single key/secret for the application, and the admin installing the app and granting permission is enough to grant access for your application’s key/secret to access the installing domains’ data. They don’t have to manually go through Steps #1 and #2.

    Note: if you are building a web application which would require the administrator grant access to their domain user list, or need write access to the provisioning API, the domain client/secret won’t work. You’ll need to use one of the other authorization mechanisms. Your application will need to setup the client ID/client secret in the APIs console– but you won’t need to have each user do this.

    Letting users login with their Apps Accounts:

    Use OAuth 2.0 for Login (which is OpenID Connect-based):
    https://developers.google.com/accounts/docs/OAuth2Login

    You’ll have to setup your application’s client info in the APIs console, but that’s only once– it wouldn’t need to be done for every domain or anything like that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking around for a while, and I have not been able to
I've been looking around for quite a while and feel that I have a
I have been looking around online for a while now for methods of integration
Now, I have been looking for the answer to this for a while, but
I have been looking around the web for this but cannot really find a
I have been looking around for awhile now and I can't seem to find
Hi StackOverflow friends. Running Drupal 6.22 php 5.3 I have been looking around now
I have been looking around for an answer to this, but couldn't really find
Hi I have been looking around for this solution but cannot find it. Have
I have been working with android for a little while now and feel pretty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.