Can I see a Trello user transition from ghost to normal through the API?

Our company uses the Trello API to add new users to our organization as part of our onboarding process. We add the user by creating PUT to /1/organizations/orgId/members , which returns the JSON representation of the new user:

 { "id": "521baf66783e22e12f000040", "confirmed": false, "fullName": "Bradley Buda", "memberType": "ghost", "username": "bradleybuda4", "email": " bradleybuda@example.com ", } 

(some fields are anonymous / deleted)

We want to save the identifier of this user in our accounting system (so that we can later delete the account at the end of Bradley's work). However, when the user "ghost" actually joins the organization (by clicking the link in the invitation letter), this user record is replaced with a completely new one, with a different "id" :

 { "id": "521bb6b018c2a109450001d7", "confirmed": true, "fullName": "Bradley Buda", "memberType": "normal", "username": "bradleybuda4" } 

In a call to GET /1/organizations/orgId/members the email address is not returned, so we cannot use this as a primary key. We could use "username" to track our Trello users, but if the user accepts the invitation using an existing Trello account (rather than creating a new account), then the username will also change.

Is there any reliable way to track the reception of invitations for users created by the API? Now we must manually track Trello accounts after accepting the invitation, and we would like this process to be fully automated. I also looked at the GET /1/organizations/orgId/memberships API, but these identifiers ( idMembership ) also seem to change when the ghost user leaves. And as far as I can tell, there are no web moves that fire when a ghost user disappears.

+6
source share
1 answer
As far as I can tell, your analysis is correct. There is really no way to track participants accepting invitations the way you want.

If you are willing to interview membership in this organization often enough (depending on how often you add new employees), you can map each ghost disappearing along with the member that appeared at the same time.

+1
source

Source: https://habr.com/ru/post/952541/


All Articles