How to get the contact labels

Hi,
I try to get the contact labels to a variable (to check if he have some specific label )
I only get the user id,email and role
My code:
var _wixUsers = require(“wix-users”);
var _wixUsers2 = _interopRequireDefault(_wixUsers);
var user = _wixUsers2.default.currentUser;
if (user.role === “Member”) {
//check if the user have some label (user.labels or something like that)
}

Thanks

Hi,

Welcome to the Wix Code forums.

I’m not sure what you’re trying to do, but your code is not valid WixCode. WixCode does not recognize require and _interopRequireDefault .

I would recommend reviewing the Wix Code Basics , and then reading about the more advanced subjects as you make progress.

Good luck and have fun,

Yisrael

Hi, thank you for the answer I have fix it :slight_smile:
but still I did not find any answer about the contact labels.
You can see about the contact labels on this link:

I try to get those labels so that I can recognize the current user and what kind labels he have.
I succeeded to get the current user information but not the labels

Hi,

A user has no labels, and is not the same as a contact. Refer to the wix-users API for more details on users. Contacts is not currently integrated with Wix Code. Integration with Contacts and other Wix apps is planned, but not timeframe available.