How to get custom field from user profile?

Hi,
I’ve added a custom field to the user profile (“Firstname”). How to get the contents of that field using a query?

query MyQuery {
users(ids: 18245638) {
email
id
name
title
}
}

Adding “firstname” to the list of fieldnames results in “Field ‘firstname’ doesn’t exist on type ‘User’”. How to get the fieldname?

Thanks,

Jaap

Hey there @Jaap-CAD2M :wave:

At this time, I’m afraid it is not possible to query custom User fields via the API. In this specific case, it seems like you could query the “name” field instead, but I definitely understand you might have wanted to query a custom field that stores information not available in other user fields.

I’ve passed this as an improvement suggestion to our product team :slight_smile: That said, I can’t confirm when or whether this would be part of our API at this time.

I hope this helps clarify!

-Alex

1 Like

Hi @AlexSavchuk ,

any updates here? This functionality would make my life a lot easier since I work on a project that is heavily based on user details/extended fields. The standard fields force me to get hacky by misusing fields that are intended to be used otherwise. Using a field this way works somehow but it is a mess for any user.

Cheers

1 Like

Hi @AlexSavchuk,
almost one week later…still interested :cold_face:

Hey Monday, it’s Sunday and nothing… we need this so much too!

@janck @maxim

I’m afraid this is still not an option that our API provides just yet, although I can clearly see how this would benefit you in your use case. At this time, I can’t share any kind of ETA, but I’ve made sure ou team is aware of your needs here :slight_smile:

Thank you for checking in, I appreciate your help in making our API more and more robust for different purposes.

-Alex

Pretty cool @AlexSavchuk ! :metal: :rainbow::sparkles:
Many thanks in advance