Closed dht closed 1 year ago
Hi @dht,
This screen leads to a specific user card: https://analytics.amplitude.com/[COMPANY]/project/[PROJECT]/search/amplitude_id%3D6257241213232 How can I open the same screen with a userId rather than an amplitude_id.
JS SDK doesn't support to fetch Amplitude ID which is generated on backend. To learn more about how Amplitude ID is generated and why Amplitude doesn't use User ID in the link.
This question is out of the scope of Amplitude Analytics SDK. Feel free to submit a request here.
Tnx, Is there a a "amplitude-javascript" package for backend admin usages? I see that this can return an amplitude API via a userId:
curl --location --request GET 'https://amplitude.com/api/2/usersearch?user=USER_ID' \
-u '{api-key}:{secret-key}'
Hi @dht, I got 403 (permission deny) error using the curl command in your last comment. Not sure if this is available to public. The question is out of the scope of this repo. Please submit a request here.
Amplitude Support solved my request. Apparently the deep link for a specific user is:
https://analytics.amplitude.com/[COMPANY]/project/[PROJECT]/search/[USER_ID]
I do think it can be part of the scope of an admin SDK package. Firebase for instance has a firebase-admin
variant of the javascript package.
Hi @dht, great to hear that your problem got solved.
This screen leads to a specific user card: https://analytics.amplitude.com/[COMPANY]/project/[PROJECT]/search/amplitude_id%3D6257241213232 How can I open the same screen with a userId rather than an amplitude_id.
If it's not possible is there a way to get the amplitude id of the user from the Browser SDK. I want power users (our company's employees) to be able to open their own user page easily from the web app to debug analytics events more easily.