[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eAfter signing in with Google, you can access the user's basic profile information, such as their name, email address, and profile image URL.\u003c/p\u003e\n"],["\u003cp\u003eYou need to download dependencies, configure your Xcode project, and integrate Google Sign-In before retrieving user information.\u003c/p\u003e\n"],["\u003cp\u003eAccess user profile data like email, name, and profile picture URL using the \u003ccode\u003eGIDGoogleUser\u003c/code\u003e object after successful authentication.\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eImportant:\u003c/strong\u003e Use ID tokens for backend server communication, instead of relying on user profile data or \u003ccode\u003euserId\u003c/code\u003e for security purposes.\u003c/p\u003e\n"]]],[],null,["# Getting profile information\n\nAfter a user signs in with Google, you can get the user's basic profile\ninformation: their name, profile image URL, and email address.\n\nBefore you begin\n----------------\n\n- [Download the dependencies and configure your Xcode project](/identity/sign-in/ios/start-integrating).\n- [Integrate Google Sign-In into your app](/identity/sign-in/ios/sign-in).\n\nRetrieving user information\n---------------------------\n\nOnce the user has authenticated and authorized access to the scopes you request,\nyou can access user profile information through the `GIDGoogleUser` object. \n\n### Swift\n\n GIDSignIn.sharedInstance.signIn(withPresenting: self) { signInResult, error in\n guard error == nil else { return }\n guard let signInResult = signInResult else { return }\n\n let user = signInResult.user\n\n let emailAddress = user.profile?.email\n\n let fullName = user.profile?.name\n let givenName = user.profile?.givenName\n let familyName = user.profile?.familyName\n\n let profilePicUrl = user.profile?.imageURL(withDimension: 320)\n }\n\n### Objective-C\n\n [GIDSignIn.sharedInstance signInWithPresentingViewController:self\n completion:^(GIDSignInResult * _Nullable signInResult,\n NSError * _Nullable error) {\n if (error) { return; }\n if (signInResult == nil) { return; }\n\n GIDGoogleUser *user = signInResult.user;\n\n NSString *emailAddress = user.profile.email;\n\n NSString *name = user.profile.name;\n NSString *givenName = user.profile.givenName;\n NSString *familyName = user.profile.familyName;\n\n NSURL *profilePic = [user.profile imageURLWithDimension:320];\n }];\n\n| **Important:** Do not use the user's profile information (including their email address) or the `GIDGoogleUser`'s `userId` field to communicate the signed-in user's identity to your backend server. Instead, [send ID tokens](/identity/sign-in/ios/backend-auth), which can be securely validated on the server."]]