How to retrieve CreatedBy from Audience using REST API | Community
Skip to main content
Level 5
July 10, 2024
Solved

How to retrieve CreatedBy from Audience using REST API

  • July 10, 2024
  • 1 reply
  • 831 views

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!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by supratim320

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

1 reply

Ankit_Chaudhary
Community Advisor
Community Advisor
July 10, 2024

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.

supratim320AuthorAccepted solution
Level 5
July 10, 2024

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