Get Custom Fields value for Users by API

Hi!
Is there any way to get users custom fields by API?

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
6 comments

Hi there! You mean getting custom field values or the custom field definition for that user 's permission?

When you read a task with / tasks/[taskid] the values of the custom fields go there.

Is you need to know a relation to the custom field with the users, seems that the "sharing"  property in the /fields/[fieldid]  endpoint shows who can write / read the field. 

regards! 

 

 

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hello!

Do you mean the User IDs? We created a lookup Table in Workato and run a recipe that scans for all Users and pulls that info then updates the table to be used in other automations. If this is what you are asking about please let me know and I can give you more information on how we set it up.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hi, I'm having a similar issue as Pietro mentioned. I've created a custom field called EmployeeId that's tied to the Users table and populated it for each user. However, when I use /users/{userId}, I'm unable to access the data in this custom field.

The proposed workaround to retrieve the custom field data from the Task doesn't work for me because it seems the EmployeeId isn't transferred to the Task when assigning a User to it.

Is there another way to access this information via the API? Any advice or suggestions would be greatly appreciated!

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hi! Vicken Jamgotchian, I solved it as Tiffany indicated.
That is, I used a recipe in Wrike Integrate that populates a Lookup Table with all the necessary data.

Now every time I need to retrieve the name, email or other data of that user I simply call the Lookup table via USERID and I get the necessary data.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Thanks for your responses! I tested an alternative approach that might be helpful for others:

GET /contacts/{userId}?fields=[customFields]

Instead of using the users endpoint, I opted for the contacts endpoint.

Shoutout to Roman (Wrike Escalations Engineer) for this suggestion!

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Thanks Vicken Jamgotchian, in this way I can save some actions in Integrate

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Get Custom Fields value for Users by API
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post