# Standard USER Object Returned

**URL:** <https://community.auth0.com/t/standard-user-object-returned/81704>\
**Category:** Get Help\
**Created:** [April 13, 2022, 4:44pm UTC](https://community.auth0.com/t/standard-user-object-returned/81704 "2022-04-13T16:44:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bniksa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bniksa/32/36580_2.png) [@bniksa](https://community.auth0.com/u/bniksa)\
**Post date:** [April 13, 2022, 4:44pm UTC](https://community.auth0.com/t/standard-user-object-returned/81704/1 "2022-04-13T16:44:14Z")

</div>

We have an app using both Google and Apple for social auth login. The USER object being returned by both is not consistent, is there a solution to making these return the same object structure? Also, the NAME field for Apple is returning the email, is this expected? The only way to get first and last name is to split the NICKNAME on “.”? I have attached a screen grab of the Google and Apple USER objects.

 ![Screen Shot 2022-04-13 at 12.24.01 PM](https://global.discourse-cdn.com/auth0/original/3X/f/0/f075486b6500be3f11158638694c4ea013b43b31.png)  
 ![Screen Shot 2022-04-13 at 12.27.50 PM](https://global.discourse-cdn.com/auth0/original/3X/3/2/324cd43a4b7bdd0d207c863d19ab399c8c8604a8.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 15, 2022, 3:10pm UTC](https://community.auth0.com/t/standard-user-object-returned/81704/3 "2022-04-15T15:10:42Z")

</div>

Hi @bniksa,

Welcome to the Auth0 Community!

I can confirm that user objects will vary depending on the connection type. The user object is dependent on how the IdP returns the info.

You can use [Rules](https://auth0.com/docs/customize/rules) to manipulate this data after a successful login.

For example:

```auto
function (user, context, callback) {
  if (context.connectionStrategy === "apple") { 
    const nameArr = user.name.split('@')[0].split('.');
    user.name = `${nameArr[0]} ${nameArr[1]}`;
  }
  callback(null, user, context);
}

```

This will normalize the `name` property from `john.doe@gmail.com` to `john doe`. This rule does not permanently change this property in the user profile, but simply normalizes what is returned after successful login.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![bniksa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bniksa/32/36580_2.png) [@bniksa](https://community.auth0.com/u/bniksa)\
**Post date:** [April 15, 2022, 6:11pm UTC](https://community.auth0.com/t/standard-user-object-returned/81704/4 "2022-04-15T18:11:27Z")

</div>

It does not really help, what I want is a consistent way to get the users first and last name from Apple. What if my email was [john.doe213@gmail.com](mailto:john.doe213@gmail.com)
