I am trying to figure out a way to get user information like userId or email address of the student when student clicks on the tool link or after authentication is done using REST API. Can anyone help me with this?
As part of the OAuth process you get an access_token. You can use this to make API calls. To get user information call the get user endpoint:
See Explore APIs
Retrieving data ...