Showing results for 
Search instead for 
Did you mean: 

Fetch user object by passing oauth2 access token

0 Kudos

Hi All,

Does we have any OOTB APIfor getting user details by passing access token in OCC? If not what will be the best approach?

Thanks, Rahul

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It does, please check getUser method under v2. Please pass the access_toke obtained by grant_type password here. But, it will be better if you create your own method which returns a dto class based on your data class as you would have made some customized fields. Hope that helps.