I have been trying to get the role id from Identity user role table. I can only get the role name using
var role = await _userManager.GetRolesAsync(user);