Dear Steffen/Daniel,
Thanks for your response. The issue was to due to missing authorization to user to query its own role and hence bapi_user_get_detail was returning an error. It is resolved and i am able to view the record as expected.
Thanks,
Shubh.