Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch Trello Workspace Member List?

Matt N July 21, 2021

Is there a way to fetch the Trello User IDs (like @[deleted]) or Emails of every Workspace Member within a Trello Workspace? Just a simple list with the User IDs or Emails separated by either Semicolons or New Lines.

EDIT: So I have been reading through the Trello API Group Actions and I did discover Get Members of an Organization. Based on this, I figured out how to perform this GET call:

https://api.trello.com/1/organizations/epochgames/members?key={apiKey}&token={apiToken}

What is printed out is a list of the following:

{

  • "id": "{24-hexadecimal-hash}",
  • "fullName": "{Name of User}",
  • "username": "{userID}"

},

This is what I'm looking for as per the Question Title, but I'm wondering: is there a way to JUST print the User ID in an ordered list of some kind?

1 answer

0 votes
Iain Dooley
Community Champion
July 21, 2021

@Matthew Norman yep this function would do it:

https://gist.github.com/iaindooley/55bba6c3b0177462399949d96d9b43dc

You can run that as an adhoc in the BenkoBot platform:

http://www.benkobot.com/

If you click this link then enter your API key/token you can then store and run the code directly, you just need to edit the workspace name before you store it:

Click to preview code in BenkoBot 

Was this you on Reddit?

https://www.reddit.com/r/trello/comments/oo5vgy/copy_members_between_workspaces/

Matt N July 22, 2021

Yep that's me! I wanted to see if Trello API could print out the list of User IDs / Emails, but it looks like BenkoBot can do this far easier.

I'm surprised that Trello itself doesn't have a more robust User List that will list Full Names, Usernames and Email Addresses in separate columns, and one that could be sorted by Ascending/Descending Order by Full Name, Username or Email Addresses. Oh well, maybe in the future?

Iain Dooley
Community Champion
July 22, 2021

@Matthew Norman yeah BenkoBot is just a cloud runner for Trellinator, a library I wrote to provide a "butler-like" JavaScript wrapper for the  Trello API:

http://docs.trellinator.com

There are more examples of how to use it here:

https://trello.com/b/IoHmhz5c/benkobot-community-board

and tonnes of examples in my gist history:

https://gist.github.com/iaindooley/

Like Matt N likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events