It is not possible to access the details of a logged in user, other than to verify that the user is in the right group for the document. The user wishes to be able to confirm this via R code.