Skip to main content

A few questions regarding teammates:

  • What would be a scenario where multiple teammates are returned by listTeammates()?
  • Is the current front user always the first user in the array?
  • Is there a better way of identifying the current front user from the plugin, ie. where only the current user is returned?

I’ll answer my own question:

  • listTeammates() returns a full list of users associated with the Front App account.
  • The list is alphabetically sorted by id (tea_xxxxx), so there is no way of knowing who the current user is.
  • There does not appear to be an option for determining who the current user is.

I’ll answer my own question:

  • listTeammates() returns a full list of users associated with the Front App account.
  • The list is alphabetically sorted by id (tea_xxxxx), so there is no way of knowing who the current user is.
  • There does not appear to be an option for determining who the current user is.

 

This is not quite correct.

Points 1+2 are accurate, however for point #3 (who is the current teammate) - that information is passed in every context event in the teammate object. See context docs for details

For all Plugin SDK methods, we have docs available for them here → https://dev.frontapp.com/reference/plugin-sdk-api 


Reply