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