# Identifying User

**URL:** <https://forum.wixstudio.com/t/identifying-user/58319>\
**Category:** Ask the community\
**Tags:** question, code, cms, wix, wix-studio\
**Created:** [April 17, 2024, 12:30pm UTC](https://forum.wixstudio.com/t/identifying-user/58319 "2024-04-17T12:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [April 17, 2024, 2:13pm UTC](https://forum.wixstudio.com/t/identifying-user/58319/2 "2024-04-17T14:13:41Z")

</div>

Hi there,

In order to fetch the value of the custom fields, you do not need to query the user’s info using wix-crm. You can directly do it from the frontend using the **wix-members-frontend** API, by setting the fieldsets to “FULL”

Take a look at the code I’ve provided below:

```javascript
import {currentMember, authentication} from 'wix-members-frontend';

$w.onReady(async function() {

    const isLoggedIn = authentication.loggedIn();

    if (isLoggedIn) {

        let options = {
            fieldsets: ['FULL']
        }

        let member = await currentMember.getMember(options);

        if (Object.keys(member.contactDetails.customFields).length > 0) {

            let value = member.contactDetails.customFields['custom.usertag'].value;

        } else {
           // Handle case if user does not have any custom fields added to their profile.
        }

    } else {
        // Handle case if user is not logged in.
    }

});

```

Just change **usertag** to the key of your custom field, and you’re good to go!

---

_[View the full topic](https://forum.wixstudio.com/t/identifying-user/58319)._
