# Attribute mapping, after Sign in with Apple

**URL:** <https://community.auth0.com/t/attribute-mapping-after-sign-in-with-apple/127388>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [February 15, 2024, 7:33am UTC](https://community.auth0.com/t/attribute-mapping-after-sign-in-with-apple/127388 "2024-02-15T07:33:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [February 20, 2024, 2:17pm UTC](https://community.auth0.com/t/attribute-mapping-after-sign-in-with-apple/127388/4 "2024-02-20T14:17:38Z")

</div>

Thanks so much for sharing @sefer !

From my side, I would like to also let you know that to interact with the Auth0’s Management API (to update user profile data like `given_name` or `family_name`) you could use within this Action our “[auth0](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947)” library instead of writing your own function.

A simplified code sample form our Github repo ([it updates user metadata](https://github.com/auth0/node-auth0/blob/master/EXAMPLES.md#update-a-users-user_metadata)):

```auto
exports.onExecutePostLogin = async (event, api) => {
import { ManagementClient } from 'auth0';

const management = new ManagementClient({
  domain: '{YOUR_TENANT_AND REGION}.auth0.com',
  clientId: '{YOUR_CLIENT_ID}',
  clientSecret: '{YOUR_CLIENT_SECRET}',
});

await management.users.update({ id: '{user id}' }, { user_metadata: { foo: 'bar' } });
}

```

I’m sharing it in case you would like to compare performance of calling our Management API with a custom function versus using our library.

[ref](https://github.com/auth0/node-auth0/blob/657c3961/src/management/__generated/models/index.ts#L11892).

---

_[View the full topic](https://community.auth0.com/t/attribute-mapping-after-sign-in-with-apple/127388)._
