User Permissions

Hi 

Is there any api to get information regarding user permissions. 

An api which provides details on the permissions the user has on various modules (sales, purchases)

Thanks and Regards,

AK