Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

How to retrieve CreatedBy from Audience using REST API

Avatar

Level 4

Hi Everyone,

I am working on a requirement where it is needed to export the audience details along with a few parameters which are not available on the UI. Hence I am working on the audience export REST API as detailed here. However, the data I am seeing in postman is not getting the createdBy and modifiedBy as user names, rather the data is an alpha-numeric data: 

 
How can I retrieve the "createdBy" and "modifiedBy" from this alpha-numeric code? Any assistance will be appreciated!
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Thank you, the user management works for me. However, I had to retrieve all the users and then do the matching as there is no API endpoint to get a single user based on the id parameter

View solution in original post

2 Replies

Avatar

Community Advisor

Hi @supratim320 

The Alphanumeric value is the user ID the segment API will always return the user ID instead of actual user name I guess you can use admin or user management API to extract user name and user IDs and then utilize excel to find the match of user ID with names.

Avatar

Correct answer by
Level 4

Thank you, the user management works for me. However, I had to retrieve all the users and then do the matching as there is no API endpoint to get a single user based on the id parameter