It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

 

8 answers

0 votes

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

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. 

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 

Like SolidSnake--23 likes this

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.

+1
please help with this problem!

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?

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

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,616 views 15 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you