Solved

How do I know when identity job has been finished?

  • 26 July 2022
  • 1 reply
  • 21 views

Userlevel 1
Badge

How do I know when identity job has been finished?

icon

Best answer by kyle.woolstenhulme 26 July 2022, 20:46

View original

1 reply

The /identity api call will return is 202 status code, which lets you know its running and you need to start polling the Member.

 

Instruction on polling member:

  • Poll MBR every 3 to 5 seconds using READ Member API: GET /users/{user_guid}/members/{member_guid}
  • Identity is successful when the member connection_status is CONNECTED and the is_being_aggregating field changes from true to false;
  • If `CHALLENGED` or `REJECTED` or `IMPEDED` or any other user actionable connection status,
    • Obtain connect widget url to surface to user: Connect endpoint: POST /users/{user_guid}/widget_urls
      • Set the `current_member_guid` option to a member in an error state. Connect will load in the error view so the end user can resolve the error.
  • Continue Polling Member status until successful as noted above.

Reply