How to fetch members' email id from trello api

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.

 

7 answers

0 vote
Gonchik Tsymzhitov Community Champion Nov 04, 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

0 vote
Oscar Triscon Community Champion Nov 04, 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 vote

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)?

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 

0 vote

Hello, 

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

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.

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 vote
Dean Su I'm New Here Jan 17, 2018

+1
please help with this problem!

Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Feb 02, 2018 in Trello

Atlassian User Groups: Trello edition

You’re invited to our first ever Trello User Groups   Good news for current and aspiring Trello enthusiasts! We’re launching Trello User Groups so that you can network, share ideas, solve ...

1,199 views 8 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot