Hello Hari !
You need to use the bx_get_logged_profile_id function - it shows the profile id of the logged user.