User Permissions for web form/ web portals

Hi
May I ask, what’s the function for getting all the roles of the user in web form?
I’ve noticed that for the Desk Form, we could use frappe.user_roles, however, I don’t know what’s that in web form.

Thanks