I want to get current user email address on Miro board load using Miro object. Please help me which object we have to use to get current user email.
Are you referring to a development method via Miro’s API or a native command? If you mean natively I don’t believe there’s any way to see user e-mail addresses in a board, but assuming you have access to the team’s Active Users view (by clicking on the team “gear” icon in the Dashboard) you could see their e-mail addresses under their user names in the list of users.
Kiron
As
Hi
You can use the Get Current User REST API.
A cURL example would be (don’t forget to replace {access_token} by your access_token)
Query:
curl --request GET \
--url https://api.miro.com/v1/users/me \
--header 'Authorization: Bearer {access_token}'
Response:
{
"type" : "user",
"id" : "xxx",
"name" : "Anthony Roux",
"createdAt" : "2021-04-01T09:35:41Z",
"company" : "Miro",
"role" : "developer",
"industry" : null,
"email" : "xx@miro.com",
"state" : "registered",
"picture" : {
"type" : "picture",
"imageUrl" : "xxx",
"id" : "xxx"
}
}
Regards,
Anthony
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.