Get role list of any user (not currently logged in user)

How to get role list of any user?

You can use frappe.get_roles(user)

1 Like

It gives error like this
TypeError: frappe.get_roles is not a function

Mentioned function is for python. Can you please explain the use case?

Thank you ,now my use case has solved.