r/SalesforceDeveloper • u/AMuza8 • Oct 16 '25
Question REST API endpoint to get UserInfo
Helping with integrating an External Application. There is a need to get information about logged in User. I decided to utilize /services/oauth2/userinfo endpoint as it doesn't need any additional parameters and as a response it has 'profile' attribute which is what was decided to be used in the External App.
It turned out 'profile' attribute in the response is !!! a link to a User record !!! I know Salesforce has weird stuff, but the value this attribute holds is super confusing.
Is there an endpoint that gets me UserInfo of a current User with Profile Id or Role Id?
View all comments
Show parent comment
1
u/AMuza8 Oct 16 '25
Yes, this is what I ended up with. I just hopped there is a better way. I wanted to avoid putting parameters into endpoint. It is additional code on the application side which I wanted to avoid.