{assigned_to: “USER-0000007”
assignee: “USER-0000006”
}
USER-0000007 how to get user details
What is the your usecase?
Use frappe.get_doc("User", user_id)
to get the user’s information. You can then access their name and email.
Example:
import frappe
user_id = "USER-0000007"
user_details = frappe.get_doc("User", user_id)
user_name = user_details.full_name
user_email = user_details.email
print("Name:", user_name)
print("Email:", user_email)
1 Like