How to fetch SERVER details for a user in a similar way to the process of SERVICE USER?

I have been following the steps from this LINK to fetch Server Details for a SERVICE user. However, I want to do the same for a regular user but I’m not able to. The problem I’m facing so far is that the SERVICE user has a KEY and SECRET as mentioned in the steps from the LINK. But a regular user has just email and username for SFT, so I’m unable to generate a BEARER token for a regular user to fetch those info.
I just need to fetch ID, Hostname, Project Name and Team Name for a user, So, if there’s a different way, that would be helpful too. I need to make calls in my Golang API to fetch those values.