Include associated RoleId of user while fetching the all users and single user through API

This is for developer-specific feature requests. For other requests please contact our customer support team.

Is your feature request related to a problem? Please describe.
I want to get the RoleId of Role which is associated with user while fetching the users , But ‘’ and ‘{UserId}’ doesn’t return the RoleId.
The API ‘{UserId}’ returns the Role Name, but we can’t correlate the role name with roleId as role names are not unique.?

Describe the solution you’d like
we want both APIs ‘’ and ‘{UserId} should return the RoleId in API response.
Additional context
The RoleId is basically used for provisioning role-related activities, hence RoleId is an important attribute. However, there is no other API that accepts role_name as input and returns role-related attributes as role_name is not unique.

Its a blocker for our project and it will be good if we can get a quick fix for the API.