I'm trying to put some rules in civiCRM hook that depends on the role ID of the user. I managed to get the user id from the Civi Contact ID by running this API call
$result = civicrm_api3('Contact', 'get', array(
'sequential' => 1,
'id' => 208,
));
But I'm not able to access the role id of the user. The role ID is mapped in the Drupal database. Actually I'm trying to hide certain tabs on the admin tab depending on the user's role.