How to fetch members' email id from trello api

Sheikh Nasif Imtiaz November 4, 2017

I am working on slack bot that has access to a team's slack and trello workspace both. The bot needs to make a connection between slack member ids and trello member ids. The members may have their names different in each platform, the only matching attribute is their mail id. However, I can't fetch each member's email id from trello api calls. The documentation has a hint that it's probably not possible. In that case, is there any other solution? using python library 'trello' and 'slackclient' for making api calls in trello and slack respectively.

 

8 answers

1 vote
Richard Spence November 6, 2017

I have exactly the same query, to be able to message a Slack User based on activity in Trello I want to tie the two accounts together but I don't see the way to get their email address from the Trello user.

Also is it possible to get a Trello user from an email address (ie. the opposite way around)?

Vishal Sharma January 17, 2018

You can use the account scope when requesting token and get email from payload.

Use this API to get user email:


https://api.trello.com/1/members/me 

Like # people like this
0 votes
omarlopesino February 22, 2019

I only see my user email, but not the emails from another users. Is this happening because it only appears the email of the user who generated the request token?

Oscar Triscon February 22, 2019

Correct. A token only gives you access to that user's email address.

omarlopesino February 22, 2019

Is there a way to extract other users emails from the api?

Oscar Triscon February 22, 2019

You'll need to ask them to authorize your application and obtain a token.

0 votes
SuTingWen January 17, 2018

+1
please help with this problem!

0 votes
Vishal Sharma January 17, 2018

Use this API to get user details:


https://api.trello.com/1/members/me 


Make sure to add "account" scope when requesting user token.

The payload has an email field which contains user's email id.

0 votes
Vishal Sharma January 17, 2018

Use this API to get user details:
https://api.trello.com/1/members/me 

Make sure to add "account" scope when requesting user token.

The payload has an email field which contains user's email id.

0 votes
Abhishek Mittal January 13, 2018

Hello, 

I'm also facing this issue, please help & share if its possible.

0 votes
Oscar Triscon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2017

What token are you using to retrieve this information? In order to be able to obtain the member's email, you need to have the user authorize your application and give permission to obtain their email address. 

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 4, 2017

Hi! 

Kindly use this module 

https://github.com/sarumont/py-trello/blob/master/trello/member.py

Because in class member you can see useful methods for you.

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events