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 8699601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:59:15+00:00 2026-06-13T01:59:15+00:00

I’ve not had much luck finding information about this and I’m hoping that someone

  • 0

I’ve not had much luck finding information about this and I’m hoping that someone can point me in the right direction.

I am building a GWT app hosted on App engine, to post a request to a remote server. Very simple. My form has a name field that I’d like to populate with the user’s first name and last name. All the users will be in our business’s google apps domain. I am successfully getting the user’s email address by using the UserService as follows:

public class LoginServiceImpl extends RemoteServiceServlet implements LoginService {
 public LoginInfo login(String requestUri) {
        UserService userService = UserServiceFactory.getUserService();
        User user = userService.getCurrentUser();
        LoginInfo loginInfo = new LoginInfo();

        if (user != null) {
          loginInfo.setLoggedIn(true);
          loginInfo.setEmailAddress(user.getEmail());
          loginInfo.setNickname(user.getNickname());
        } else {
          loginInfo.setLoggedIn(false);
          }
        return loginInfo;
      }
}

Now, I need to somehow get the user’s first name and last name potentially using the email address to look this up.

I’ve thought of the following ways:
– Can I use the google contacts API somehow? I don’t really want to look at an individual user’s contacts, I’d like to look at the business’s contacts which we are bringing in from Active Directory via Google Apps Direcory sync.
– Can I use Oauth to do this? I haven’t really been able to find good info on how to do this.
– Can I somehow get this from the Google Apps Engine UserService? (I think I’ve concluded that you can’t do this – is that correct?)
– (Updated to add) I’m also looking into the provisioning API…I’m thinking this might work but don’t want to overlook a better/easier way.

Any ideas, thoughts, or suggestions will be greatly appreciated.

  • 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-13T01:59:16+00:00Added an answer on June 13, 2026 at 1:59 am

    You can use OAuth 2.0 authentication as this allows your app to access users profile which include name. Look at OAuth client lib which works on GAE.

    You could also use scribe-up, which uses OAuth to get profiles from various providers, including Google.

    OTOH, if you are only doing this for one (your own) domain, then you’d be better off with Google Service Accounts, which gives user-independent access to particular Google Apps account. This way you could access profiles and get users data.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I know there's a lot of other questions out there that deal with this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I need a function that will clean a strings' special characters. I do NOT
Does anyone know how can I replace this 2 symbol below from the string
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.